new Shopify.OptionSelectors("product-select-2921294917", { product: filterVariants({"id":2921294917,"title":"Snap Closure Dressing Frame","handle":"snap-closure-dressing-frame-1","description":"","published_at":"2015-11-16T16:59:00+10:00","created_at":"2015-11-16T17:00:56+10:00","vendor":"I AM Montessori","type":"Practical Life","tags":[],"price":2795,"price_min":2795,"price_max":2795,"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":8592515333,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"PR014","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Snap Closure Dressing Frame","public_title":null,"options":["Default Title"],"price":2795,"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\/1_1c9dab7b-0ceb-433b-8259-23eeac0f43ad.png?v=1447657258"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_1c9dab7b-0ceb-433b-8259-23eeac0f43ad.png?v=1447657258","options":["Title"],"media":[{"alt":null,"id":35872407633,"position":1,"preview_image":{"aspect_ratio":1.3,"height":80,"width":104,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_1c9dab7b-0ceb-433b-8259-23eeac0f43ad.png?v=1568727977"},"aspect_ratio":1.3,"height":80,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_1c9dab7b-0ceb-433b-8259-23eeac0f43ad.png?v=1568727977","width":104}],"content":""}), 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');
}
}
});
});