new Shopify.OptionSelectors("product-select-3726883077", { product: filterVariants({"id":3726883077,"title":"Geometric Cabinet","handle":"geometric-cabinet","description":"","published_at":"2016-02-10T11:09:00+10:00","created_at":"2016-02-10T11:10:59+10:00","vendor":"I AM Montessori","type":"Sensorial","tags":[],"price":33995,"price_min":33995,"price_max":33995,"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":10966405317,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"SE018","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Geometric Cabinet","public_title":null,"options":["Default Title"],"price":33995,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":""}],"images":[],"featured_image":null,"options":["Title"],"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');
}
}
});
});