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":81551097863,"title":"ED761","handle":"ed761","description":null,"published_at":"2017-11-24T10:18:00+02:00","created_at":"2017-11-24T10:18:00+02:00","vendor":"EDEN EYEWEAR","type":"ED02","tags":["Acetate","BS-20","EDEN-EYEWEAR","EH-33","ES-51","Full-rim","Mens","NEW","Optical","R301-R500","Rectangular","TREND-COLLECTIONS","TS-140"],"price":39900,"price_min":39900,"price_max":39900,"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":809247703047,"title":"Brown \/ matte gold \/ COL30 \/ ED02","option1":"Brown \/ matte gold","option2":"COL30","option3":"ED02","sku":"ED761\/30","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ED761 - Brown \/ matte gold \/ COL30 \/ ED02","public_title":"Brown \/ matte gold \/ COL30 \/ ED02","options":["Brown \/ matte gold","COL30","ED02"],"price":39900,"weight":0,"compare_at_price":null,"inventory_quantity":101,"inventory_management":"shopify","inventory_policy":"continue","barcode":"7613051201406"},{"id":809247735815,"title":"Black \/ shiny gold \/ COL53 \/ ED02","option1":"Black \/ shiny gold","option2":"COL53","option3":"ED02","sku":"ED761\/53","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ED761 - Black \/ shiny gold \/ COL53 \/ ED02","public_title":"Black \/ shiny gold \/ COL53 \/ ED02","options":["Black \/ shiny gold","COL53","ED02"],"price":39900,"weight":0,"compare_at_price":null,"inventory_quantity":100,"inventory_management":"shopify","inventory_policy":"continue","barcode":"7615351201407"}],"images":[],"featured_image":null,"options":["Colour","Code","ItemGroup"],"content":null},
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" );
*/