new Shopify.OptionSelectors("product-select-2921194309", { product: filterVariants({"id":2921194309,"title":"*Centesimal Circle \u0026 Protractor","handle":"centesimal-circle-protractor","description":"","published_at":"2015-11-16T16:47:00+10:00","created_at":"2015-11-16T16:48:26+10:00","vendor":"I AM Montessori","type":"Mathematics","tags":[],"price":1395,"price_min":1395,"price_max":1395,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":8591990533,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"MA094","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"*Centesimal Circle \u0026 Protractor","public_title":null,"options":["Default Title"],"price":1395,"weight":0,"compare_at_price":null,"inventory_quantity":2,"inventory_management":"shopify","inventory_policy":"deny","barcode":""}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_32bdb0e8-4180-4784-882a-c180dc2d50e0.jpeg?v=1447656508"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/0274\/9811\/products\/1_32bdb0e8-4180-4784-882a-c180dc2d50e0.jpeg?v=1447656508","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.
$('.single-option-selector:eq(0)').val("Default Title").trigger('change').selectbox({});
});
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');
}
}
});
});