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":52989722631,"title":"ONO-TOYA","handle":"ono-toya","description":"","published_at":"2017-11-11T11:18:37+02:00","created_at":"2017-11-11T11:18:37+02:00","vendor":"O NEILL EYEWEAR","type":"ON02P","tags":["Acetate","BS-16","DESIGNER-BRANDS","EH-36","ES-50","Full-rim","Ladies","NEW","O-NEILL-EYEWEAR","Optical","R501-R1000","Rectangular","TS-135"],"price":59900,"price_min":59900,"price_max":59900,"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":388676714503,"title":"BROWN \/ COL190 \/ ON02P","option1":"BROWN","option2":"COL190","option3":"ON02P","sku":"ONO-TOYA\/190","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ONO-TOYA - BROWN \/ COL190 \/ ON02P","public_title":"BROWN \/ COL190 \/ ON02P","options":["BROWN","COL190","ON02P"],"price":59900,"weight":0,"compare_at_price":null,"inventory_quantity":19,"inventory_management":null,"inventory_policy":"continue","barcode":"5055022617168"},{"id":388676747271,"title":"BROWN \/ COL103 \/ ON02P","option1":"BROWN","option2":"COL103","option3":"ON02P","sku":"ONO-TOYA\/103","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ONO-TOYA - BROWN \/ COL103 \/ ON02P","public_title":"BROWN \/ COL103 \/ ON02P","options":["BROWN","COL103","ON02P"],"price":59900,"weight":0,"compare_at_price":null,"inventory_quantity":20,"inventory_management":null,"inventory_policy":"continue","barcode":"5055022617120"},{"id":388676780039,"title":"PURPLE \/ COL161 \/ ON02P","option1":"PURPLE","option2":"COL161","option3":"ON02P","sku":"ONO-TOYA\/161","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ONO-TOYA - PURPLE \/ COL161 \/ ON02P","public_title":"PURPLE \/ COL161 \/ ON02P","options":["PURPLE","COL161","ON02P"],"price":59900,"weight":0,"compare_at_price":null,"inventory_quantity":19,"inventory_management":null,"inventory_policy":"continue","barcode":"5055022617144"},{"id":388676812807,"title":"GREY \/ COL108 \/ ON02P","option1":"GREY","option2":"COL108","option3":"ON02P","sku":"ONO-TOYA\/108","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"ONO-TOYA - GREY \/ COL108 \/ ON02P","public_title":"GREY \/ COL108 \/ ON02P","options":["GREY","COL108","ON02P"],"price":59900,"weight":0,"compare_at_price":null,"inventory_quantity":18,"inventory_management":null,"inventory_policy":"continue","barcode":"5055022617137"}],"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" ); */