new Shopify.OptionSelectors("product-select-3712578309", { product: filterVariants({"id":3712578309,"title":"15cm Craft Sticks Natural Colour (100 Pack)","handle":"15cm-craft-sticks-natural-colour-100-pack","description":"Craft Gallery Sticks - great for art, craft and Practical Life activities","published_at":"2016-07-07T14:33:00+10:00","created_at":"2016-02-08T15:13:15+10:00","vendor":"I AM Montessori","type":"","tags":[],"price":695,"price_min":695,"price_max":695,"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":10918585285,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"15cm Craft Sticks Natural Colour (100 Pack)","public_title":null,"options":["Default Title"],"price":695,"weight":150,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":""}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/paddle.jpeg?v=1467866025"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/paddle.jpeg?v=1467866025","options":["Title"],"media":[{"alt":null,"id":39624540241,"position":1,"preview_image":{"aspect_ratio":1.488,"height":121,"width":180,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/paddle.jpeg?v=1568732348"},"aspect_ratio":1.488,"height":121,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/paddle.jpeg?v=1568732348","width":180}],"content":"Craft Gallery Sticks - great for art, craft and Practical Life activities"}), 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');
}
}
});
});