new Shopify.OptionSelectors("product-select-9026377417", { product: filterVariants({"id":9026377417,"title":"Geometric form card cabinet","handle":"geometric-form-card-cabinet","description":"","published_at":"2017-03-23T11:00:00+10:00","created_at":"2017-03-23T11:02:28+10:00","vendor":"I AM Montessori","type":"Sensorial","tags":[],"price":4495,"price_min":4495,"price_max":4495,"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":32586491977,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"SE020-1","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Geometric form card cabinet","public_title":null,"options":["Default Title"],"price":4495,"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\/Picture1_26e52a29-d1bf-492e-9e10-40897e7fdbda.png?v=1490230950"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/Picture1_26e52a29-d1bf-492e-9e10-40897e7fdbda.png?v=1490230950","options":["Title"],"media":[{"alt":null,"id":143145402449,"position":1,"preview_image":{"aspect_ratio":1.316,"height":79,"width":104,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/Picture1_26e52a29-d1bf-492e-9e10-40897e7fdbda.png?v=1568841588"},"aspect_ratio":1.316,"height":79,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/Picture1_26e52a29-d1bf-492e-9e10-40897e7fdbda.png?v=1568841588","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');
}
}
});
});