new Shopify.OptionSelectors("product-select-43929403401", { product: filterVariants({"id":43929403401,"title":"*Unlabeled South America Control Map","handle":"unlabeled-south-america-control-map","description":"","published_at":"2017-10-18T10:42:42+10:00","created_at":"2017-10-18T10:43:35+10:00","vendor":"I AM Montessori","type":"Culture","tags":[],"price":495,"price_min":495,"price_max":495,"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":393921069065,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"GE006-2","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"*Unlabeled South America Control Map","public_title":null,"options":["Default Title"],"price":495,"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\/11582_1.jpg?v=1508287418"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/11582_1.jpg?v=1508287418","options":["Title"],"media":[{"alt":null,"id":482909454417,"position":1,"preview_image":{"aspect_ratio":0.784,"height":500,"width":392,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/11582_1.jpg?v=1568990326"},"aspect_ratio":0.784,"height":500,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/11582_1.jpg?v=1568990326","width":392}],"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');
}
}
});
});