new Shopify.OptionSelectors("product-select-2795909829", { product: filterVariants({"id":2795909829,"title":"*Snail Puzzle","handle":"snail-puzzle-1","description":"\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eEight-piece wooden puzzle with knobs challenges motor abilities while engaging in \u003c\/span\u003e\u003cspan\u003epattern recognition, spatial awareness and sequencing.\u003c\/span\u003e","published_at":"2015-11-09T15:55:00+10:00","created_at":"2015-11-09T15:57:21+10:00","vendor":"I AM Montessori","type":"Culture","tags":["cultural","puzzle","snail"],"price":1895,"price_min":1895,"price_max":1895,"available":false,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":8172948101,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"BO035","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"*Snail Puzzle","public_title":null,"options":["Default Title"],"price":1895,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":""}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/snail.jpg?v=1447048642"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/snail.jpg?v=1447048642","options":["Title"],"media":[{"alt":null,"id":35392094289,"position":1,"preview_image":{"aspect_ratio":1.316,"height":38,"width":50,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/snail.jpg?v=1568725317"},"aspect_ratio":1.316,"height":38,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/snail.jpg?v=1568725317","width":50}],"content":"\u003cmeta charset=\"utf-8\"\u003e\u003cspan\u003eEight-piece wooden puzzle with knobs challenges motor abilities while engaging in \u003c\/span\u003e\u003cspan\u003epattern recognition, spatial awareness and sequencing.\u003c\/span\u003e"}), onVariantSelected: selectCallback });
// Add label if only one product option and it isn't 'Title'. Could be 'Size'.
// Hide selectors if we only have 1 variant and its title contains 'Default'.
$('.selector-wrapper').hide();
// Auto-select first available variant on page load. Otherwise the product looks sold out.
});
jQuery(document).ready(function($){
// Initialize popup as usual
$('.slides').magnificPopup({
delegate: 'a',
type: 'image',
closeOnContentClick: false,
closeBtnInside: false,
mainClass: 'mfp-with-zoom mfp-img-mobile',
image: {
verticalFit: true
},
gallery: {
enabled: true
},
zoom: {
enabled: true,
duration: 300, // don't foget to change the duration also in CSS
opener: function(element) {
return element.find('img');
}
}
});
});