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":1372039118897,"title":"SC616","handle":"sc616","description":"","published_at":"2018-07-25T11:07:16+02:00","created_at":"2018-07-25T11:07:16+02:00","vendor":"STONED CHERRIE EYEWEAR","type":"SC02M","tags":["BS-19","DESIGNER-BRANDS","EH-39","ES-52","Full-rim","Ladies","Metal","NEW","Optical","R501-R1000","Square","STONED-CHERRIE-EYEWEAR","TS-135"],"price":63500,"price_min":63500,"price_max":63500,"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":12361668886577,"title":"BLACK \/ COL50 \/ SC02M","option1":"BLACK","option2":"COL50","option3":"SC02M","sku":"SC616\/50","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"SC616 - BLACK \/ COL50 \/ SC02M","public_title":"BLACK \/ COL50 \/ SC02M","options":["BLACK","COL50","SC02M"],"price":63500,"weight":0,"compare_at_price":null,"inventory_quantity":40,"inventory_management":null,"inventory_policy":"deny","barcode":"6165052191350"},{"id":12361668919345,"title":"RED \/ COL80 \/ SC02M","option1":"RED","option2":"COL80","option3":"SC02M","sku":"SC616\/80","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"SC616 - RED \/ COL80 \/ SC02M","public_title":"RED \/ COL80 \/ SC02M","options":["RED","COL80","SC02M"],"price":63500,"weight":0,"compare_at_price":null,"inventory_quantity":88,"inventory_management":null,"inventory_policy":"deny","barcode":"6168052191351"},{"id":12361668952113,"title":"BROWN \/ COL30 \/ SC02M","option1":"BROWN","option2":"COL30","option3":"SC02M","sku":"SC616\/30","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"SC616 - BROWN \/ COL30 \/ SC02M","public_title":"BROWN \/ COL30 \/ SC02M","options":["BROWN","COL30","SC02M"],"price":63500,"weight":0,"compare_at_price":null,"inventory_quantity":86,"inventory_management":null,"inventory_policy":"deny","barcode":"6163052191356"}],"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" ); */