news

Saturday, July 31, 2021

Victoria Myers

Good morning lovely knitters!  What a beautiful morning....oh the cool!!  I can't remember the last time a morning walk wasn't gross and wet, so this morning was quite a welcome relief!!  And a perfect bit of cool to think about some fall knitting!

I have to be quick to day because I'm headed to see me parents and sister in NY right after I close and I'm pretty sure I've only packed 3 projects...I need to handle that!

BUT, the big news this week was the release of Wayside Waves!!  This is the Greater Boston Yarn Crawl 2021 pattern!  The Crawl will be September 30- October 3!!  You can find the pattern here (with the passport attached!) and pop in and get your yarn or find it here.  It is a delight to knit and so soft to wear!!

 

This release coincided with a HUGE batch of Cumulus and Cumulus Rainbow coming back into the shop - so if you have been waiting for any of our awesome Cumulus or Cumulus Rainbow kits to go off pre-order, now is the time to grab them!

Watery Ripples

Love from Afar

At the Horizon

We also got SO much new Katia this week, that I'll have to go into more detail next week when I get them online, but you can come in and dive into the boxes today if you want!  One of them, I immediately had to text the rep and say - ummm...I need like 30 more bags of this!!  Gorgeous!!

Don't forget to get in on our upcoming classes!

Ok, must run!  I hope to see you today!

Island Yarn Company 
189 Main Street
Maynard, MA  01754
Current hours: Wednesday to Saturday, 12-4

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(), ); }