new Shopify.OptionSelectors("product-select-2921182469", { product: filterVariants({"id":2921182469,"title":"Dot Exercise Sheets (50 Pcs)","handle":"dot-exercise-sheets-50-pcs","description":"","published_at":"2015-11-16T16:46:00+10:00","created_at":"2015-11-16T16:47:16+10:00","vendor":"I AM Montessori","type":"Mathematics","tags":[],"price":995,"price_min":995,"price_max":995,"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":8591928453,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"MA093-1","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Dot Exercise Sheets (50 Pcs)","public_title":null,"options":["Default Title"],"price":995,"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_b065f116-4d70-4a49-95c7-9d704c4a5d21.jpeg?v=1447656438"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_b065f116-4d70-4a49-95c7-9d704c4a5d21.jpeg?v=1447656438","options":["Title"],"media":[{"alt":null,"id":35872014417,"position":1,"preview_image":{"aspect_ratio":0.77,"height":256,"width":197,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_b065f116-4d70-4a49-95c7-9d704c4a5d21.jpeg?v=1568727976"},"aspect_ratio":0.77,"height":256,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_b065f116-4d70-4a49-95c7-9d704c4a5d21.jpeg?v=1568727976","width":197}],"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');
}
}
});
});