new Shopify.OptionSelectors("product-select-165449413", { product: filterVariants({"id":165449413,"title":"Small Tray","handle":"small-tray","description":"Small wooden tray suitable for many practical life activities such as pouring, transferring and cutting.","published_at":"2014-08-31T20:22:00+10:00","created_at":"2013-10-17T09:52:40+10:00","vendor":"I AM Montessori","type":"Practical Life","tags":["practical life","tray"],"price":2195,"price_min":2195,"price_max":2195,"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":380136195,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"PRO18-1","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Small Tray","public_title":null,"options":["Default Title"],"price":2195,"weight":500,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":""}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/small_tray.png?v=1381967560"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/small_tray.png?v=1381967560","options":["Title"],"media":[{"alt":null,"id":9898033233,"position":1,"preview_image":{"aspect_ratio":1.0,"height":444,"width":444,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/small_tray.png?v=1568679297"},"aspect_ratio":1.0,"height":444,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/small_tray.png?v=1568679297","width":444}],"content":"Small wooden tray suitable for many practical life activities such as pouring, transferring and cutting."}), 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');
}
}
});
});