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":4457859416113,"title":"KS-9011","handle":"ks-11025","description":null,"published_at":"2019-12-10T20:17:44+02:00","created_at":"2019-12-10T20:17:44+02:00","vendor":"KUBIK","type":"KB04","tags":["Injection-plastic","KUBIK","Polarized-Sunglass","R101-R300","STYLISH-GENERIC-COLLECTIONS"],"price":16900,"price_min":16900,"price_max":16900,"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":31454884233265,"title":"KS-9011\/1 \/ COL1 \/ KB04","option1":"KS-9011\/1","option2":"COL1","option3":"KB04","sku":"KS-9011\/1","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"KS-9011 - KS-9011\/1 \/ COL1 \/ KB04","public_title":"KS-9011\/1 \/ COL1 \/ KB04","options":["KS-9011\/1","COL1","KB04"],"price":16900,"weight":0,"compare_at_price":null,"inventory_quantity":2,"inventory_management":"shopify","inventory_policy":"deny","barcode":"0"},{"id":31454884266033,"title":"BLACK \/ COL1 \/ KB04","option1":"BLACK","option2":"COL1","option3":"KB04","sku":"KS-9011\/1","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"KS-9011 - BLACK \/ COL1 \/ KB04","public_title":"BLACK \/ COL1 \/ KB04","options":["BLACK","COL1","KB04"],"price":16900,"weight":0,"compare_at_price":null,"inventory_quantity":6,"inventory_management":"shopify","inventory_policy":"deny","barcode":""}],"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" ); */