news

Saturday, June 12, 2021

Victoria Myers

Good morning lovely knitters!!  I hope you are breathing a nice sigh of relief this morning with this lovely cool down!  I can tell you - this weekend was NOT the weekend to be working on a blanket!  Yikes - I almost melted away!

This week, we got a BIG new batch of Noro Kureyon!!  Which means, if you have been wanted to build your own kit to make a Bag of Dragons - this is the perfect day to stop in - SO many choices!!  :)

And, I can officially tell you that the Greater Boston Yarn Crawl is back on for this fall - so mark your calendars now!  You can stay up to date with news here or on Facebook!  The dates of the 2021 crawl are September 30 - October 3!  It is going to be SUCH a fun time!!

There's also a chance to grab your log cabin blanket kit!  Don't miss it!

I also added a couple of new things to the Sale Bin - check it out for a great deal!

And since a few of you have asked - I do plan on restarting classes - but not until late summer/early fall.  I'll probably start making a schedule soon, so that you have time to plan, but if you have any requests, let me know!

Oh, AND we are starting a new KAL soon!  But I'm waiting for a new shipment of a particular yarn which is due soon - so stay tuned!

Island Yarn Company 
189 Main Street
Maynard, MA  01754
Current hours: Wednesday to Saturday, 12-4 (clinic time by appt only Weds to Friday 4-4:30)

Leave a Comment

Please note, comments must be approved before they are published

const selectVariantByClickingImage = { // Create variant images from productJson object _createVariantImage: function (product) { const variantImageObject = {}; product.variants.forEach((variant) => { if ( typeof variant.featured_image !== 'undefined' && variant.featured_image !== null ) { const variantImage = variant.featured_image.src .split('?')[0] .replace(/http(s)?:/, ''); variantImageObject[variantImage] = variantImageObject[variantImage] || {}; product.options.forEach((option, index) => { const optionValue = variant.options[index]; const optionKey = `option-${index}`; if ( typeof variantImageObject[variantImage][optionKey] === 'undefined' ) { variantImageObject[variantImage][optionKey] = optionValue; } else { const oldValue = variantImageObject[variantImage][optionKey]; if (oldValue !== null && oldValue !== optionValue) { variantImageObject[variantImage][optionKey] = null; } } }); } }); return variantImageObject; }, _updateVariant: function (event, id, product, variantImages) { const arrImage = event.target.src .split('?')[0] .replace(/http(s)?:/, '') .split('.'); const strExtention = arrImage.pop(); const strRemaining = arrImage.pop().replace(/_[a-zA-Z0-9@]+$/, ''); const strNewImage = `${arrImage.join('.')}.${strRemaining}.${strExtention}`; if (typeof variantImages[strNewImage] !== 'undefined') { product.variants.forEach((option, index) => { const optionValue = variantImages[strNewImage][`option-${index}`]; if (optionValue !== null && optionValue !== undefined) { const selects = document.querySelectorAll('#'+ id + ' [class*=single-option-selector]'); const options = selects[index].options; for (let option, n = 0; (option = options[n]); n += 1) { if (option.value === optionValue) { selects[index].selectedIndex = n; selects[index].dispatchEvent(new Event('change')); break; } } } }); } }, _selectVariant: function() { const productJson = document.querySelectorAll('[id^=ProductJson-'); if (productJson.length > 0) { productJson.forEach((product) => { const sectionId = product.id.replace("ProductJson-", "shopify-section-"); const thumbnails = document.querySelectorAll('#'+ sectionId + ' img[src*="/products/"]'); if (thumbnails.length > 1) { const productObject = JSON.parse(product.innerHTML); const variantImages = this._createVariantImage(productObject); // need to check variants > 1 if (productObject.variants.length > 1) { thumbnails.forEach((thumbnail) => { thumbnail.addEventListener('click', (e) => this._updateVariant(e, sectionId, productObject, variantImages), ); }); } } }); } }, }; if (document.readyState !== 'loading') { selectVariantByClickingImage._selectVariant(); } else { document.addEventListener( 'DOMContentLoaded', selectVariantByClickingImage._selectVariant(), ); }