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":10714100231,"title":"SP477","handle":"sp477","description":"","published_at":"2017-07-06T14:30:16+02:00","created_at":"2017-07-06T14:30:16+02:00","vendor":"BEYOND EYEWEAR","type":"SP01","tags":["BEYOND-EYEWEAR","BS-18","BUDGET-COLLECTION","EH-32","ES-54","Full-rim","Mens","Metal","NEW","OPTICAL","R0-R100","Square","TS-145"],"price":7500,"price_min":7500,"price_max":7500,"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":61395992583,"title":"SEMI GUN \/ COL40 \/ SP01","option1":"SEMI GUN","option2":"COL40","option3":"SP01","sku":"SP477\/40","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"SP477 - SEMI GUN \/ COL40 \/ SP01","public_title":"SEMI GUN \/ COL40 \/ SP01","options":["SEMI GUN","COL40","SP01"],"price":7500,"weight":0,"compare_at_price":null,"inventory_quantity":166,"inventory_management":"shopify","inventory_policy":"continue","barcode":"0"},{"id":62535761927,"title":"M.BLUE \/ COL60 \/ SP01","option1":"M.BLUE","option2":"COL60","option3":"SP01","sku":"SP477\/60","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"SP477 - M.BLUE \/ COL60 \/ SP01","public_title":"M.BLUE \/ COL60 \/ SP01","options":["M.BLUE","COL60","SP01"],"price":7500,"weight":0,"compare_at_price":null,"inventory_quantity":51,"inventory_management":"shopify","inventory_policy":"continue","barcode":"0"},{"id":62535794695,"title":"SEMI BLK \/ COL50 \/ SP01","option1":"SEMI BLK","option2":"COL50","option3":"SP01","sku":"SP477\/50","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"SP477 - SEMI BLK \/ COL50 \/ SP01","public_title":"SEMI BLK \/ COL50 \/ SP01","options":["SEMI BLK","COL50","SP01"],"price":7500,"weight":0,"compare_at_price":null,"inventory_quantity":108,"inventory_management":"shopify","inventory_policy":"continue","barcode":"0"}],"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" ); */