Damar gives you more
BACK
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":87881023495,"title":"ED757","handle":"ed757","description":"","published_at":"2017-11-27T10:17:48+02:00","created_at":"2017-11-27T10:17:48+02:00","vendor":"EDEN EYEWEAR","type":"ED02","tags":["Acetate","BS-16","EDEN-EYEWEAR","EH-36","ES-50","Full-rim","NEW","Optical","R301-R500","TREND-COLLECTIONS","TS-145","Unisex","Wayfarer"],"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":878961688583,"title":"Petrol \/ shiny light gun \/ COL61 \/ ED02","option1":"Petrol \/ shiny light gun","option2":"COL61","option3":"ED02","sku":"ED757\/61","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ED757 - Petrol \/ shiny light gun \/ COL61 \/ ED02","public_title":"Petrol \/ shiny light gun \/ COL61 \/ ED02","options":["Petrol \/ shiny light gun","COL61","ED02"],"price":39900,"weight":0,"compare_at_price":null,"inventory_quantity":98,"inventory_management":null,"inventory_policy":"continue","barcode":"7576150161456"},{"id":878961721351,"title":"Brown \/ shiny gold \/ COL30 \/ ED02","option1":"Brown \/ shiny gold","option2":"COL30","option3":"ED02","sku":"ED757\/30","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ED757 - Brown \/ shiny gold \/ COL30 \/ ED02","public_title":"Brown \/ shiny gold \/ COL30 \/ ED02","options":["Brown \/ shiny gold","COL30","ED02"],"price":39900,"weight":0,"compare_at_price":null,"inventory_quantity":87,"inventory_management":null,"inventory_policy":"continue","barcode":"7573050161456"},{"id":878961754119,"title":"Violet \/ Shiny sliver \/ COL71 \/ ED02","option1":"Violet \/ Shiny sliver","option2":"COL71","option3":"ED02","sku":"ED757\/71","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ED757 - Violet \/ Shiny sliver \/ COL71 \/ ED02","public_title":"Violet \/ Shiny sliver \/ COL71 \/ ED02","options":["Violet \/ Shiny sliver","COL71","ED02"],"price":39900,"weight":0,"compare_at_price":null,"inventory_quantity":93,"inventory_management":null,"inventory_policy":"continue","barcode":"7577150161453"}],"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" ); */