new Shopify.OptionSelectors("product-select-9026517897", { product: filterVariants({"id":9026517897,"title":"Number puzzle 1-10","handle":"number-puzzle-1-12","description":"","published_at":"2017-03-23T11:11:00+10:00","created_at":"2017-03-23T11:16:17+10:00","vendor":"I AM Montessori","type":"Mathematics","tags":[],"price":2595,"price_min":2595,"price_max":2595,"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":32587042633,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"MA010-1","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"Number puzzle 1-10","public_title":null,"options":["Default Title"],"price":2595,"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_9f6833a0-8258-4b43-8124-38c2f025fcf2.png?v=1490231779"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/Picture1_9f6833a0-8258-4b43-8124-38c2f025fcf2.png?v=1490231779","options":["Title"],"media":[{"alt":null,"id":143242428497,"position":1,"preview_image":{"aspect_ratio":1.494,"height":79,"width":118,"src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/Picture1_9f6833a0-8258-4b43-8124-38c2f025fcf2.png?v=1568841900"},"aspect_ratio":1.494,"height":79,"media_type":"image","src":"https:\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/Picture1_9f6833a0-8258-4b43-8124-38c2f025fcf2.png?v=1568841900","width":118}],"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');
}
}
});
});