var selectCallback = function(variant, selector) {
timber.productPage({
money_format: "R {{amount}}",
variant: variant,
selector: selector,
translations: {
add_to_cart : "Add to Cart",
sold_out : "Sold Out",
unavailable : "Unavailable"
}
});
};
/*
jQuery(function($) {
new Shopify.OptionSelectors('productSelect', {
product: {"id":547172515889,"title":"DM SPX503","handle":"dm-spx503","description":"","published_at":"2018-03-20T10:47:43+02:00","created_at":"2018-03-20T10:47:43+02:00","vendor":"BEYOND XTRA EYEWEAR","type":"SP03XM","tags":["BEYOND-XTRA-EYEWEAR","BS-16","BUDGET-COLLECTION","Cat-Eye","Demo","EH-37","ES-51","Full-rim","Ladies","Metal","NEW","R0-R100","TS-140"],"price":8900,"price_min":8900,"price_max":8900,"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":7311922593841,"title":"Wine \/ COL80 \/ SP03XM","option1":"Wine","option2":"COL80","option3":"SP03XM","sku":"DM SPX503\/80","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"DM SPX503 - Wine \/ COL80 \/ SP03XM","public_title":"Wine \/ COL80 \/ SP03XM","options":["Wine","COL80","SP03XM"],"price":8900,"weight":0,"compare_at_price":null,"inventory_quantity":1,"inventory_management":null,"inventory_policy":"deny","barcode":"5038051161406"}],"images":[],"featured_image":null,"options":["Colour","Code","ItemGroup"],"content":""},
onVariantSelected: selectCallback,
enableHistoryState: true
});
// 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'.
});
*/
$( ".site-nav li:nth-of-type(3)" ).addClass( "site-nav--active" );
*/