$(document).ready(function() { $('.more_info_block .page-product-heading li:first, .more_info_block .tab-content section:first').addClass('active'); new Shopify.OptionSelectors('productSelect', { product: {"id":1957753258070,"title":"LYLA NECKLACE AND EARRINGS SET JNE547","handle":"necklace-and-earrings-set-1","description":"\u003cdiv\u003eA diamond set perfect for an elegant night out. \u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003e \u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003eDiamond details \u003cbr\u003eGold finish\u003c\/div\u003e\n\u003cdiv\u003e \u003c\/div\u003e\n\u003cdiv\u003e\n\u003cstrong\u003eFit Information\u003c\/strong\u003e\u003cbr\u003eLength: 50cm\u003c\/div\u003e","published_at":"2019-02-08T16:59:17+11:00","created_at":"2019-02-06T15:00:10+11:00","vendor":"Bariano","type":"","tags":["50-100","accessories","bodycon","color-antique-gold","color-gold","gold","one-size","SALEBABY","size-one-size"],"price":6995,"price_min":6995,"price_max":6995,"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":19751486849110,"title":"GOLD \/ One Size","option1":"GOLD","option2":"One Size","option3":null,"sku":"JNE547-139600","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"LYLA NECKLACE AND EARRINGS SET JNE547 - GOLD \/ One Size","public_title":"GOLD \/ One Size","options":["GOLD","One Size"],"price":6995,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15501.jpg?v=1553643855","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15501_d4236001-e678-47df-a97d-fa8c300ea9a6.jpg?v=1553643855"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15501.jpg?v=1553643855","options":["Color","Size"],"content":"\u003cdiv\u003eA diamond set perfect for an elegant night out. \u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003e \u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003eDiamond details \u003cbr\u003eGold finish\u003c\/div\u003e\n\u003cdiv\u003e \u003c\/div\u003e\n\u003cdiv\u003e\n\u003cstrong\u003eFit Information\u003c\/strong\u003e\u003cbr\u003eLength: 50cm\u003c\/div\u003e"}, onVariantSelected: selectCallback, enableHistoryState: true }); Shopify.linkOptionSelectors({"id":1957753258070,"title":"LYLA NECKLACE AND EARRINGS SET JNE547","handle":"necklace-and-earrings-set-1","description":"\u003cdiv\u003eA diamond set perfect for an elegant night out. \u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003e \u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003eDiamond details \u003cbr\u003eGold finish\u003c\/div\u003e\n\u003cdiv\u003e \u003c\/div\u003e\n\u003cdiv\u003e\n\u003cstrong\u003eFit Information\u003c\/strong\u003e\u003cbr\u003eLength: 50cm\u003c\/div\u003e","published_at":"2019-02-08T16:59:17+11:00","created_at":"2019-02-06T15:00:10+11:00","vendor":"Bariano","type":"","tags":["50-100","accessories","bodycon","color-antique-gold","color-gold","gold","one-size","SALEBABY","size-one-size"],"price":6995,"price_min":6995,"price_max":6995,"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":19751486849110,"title":"GOLD \/ One Size","option1":"GOLD","option2":"One Size","option3":null,"sku":"JNE547-139600","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"LYLA NECKLACE AND EARRINGS SET JNE547 - GOLD \/ One Size","public_title":"GOLD \/ One Size","options":["GOLD","One Size"],"price":6995,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15501.jpg?v=1553643855","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15501_d4236001-e678-47df-a97d-fa8c300ea9a6.jpg?v=1553643855"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15501.jpg?v=1553643855","options":["Color","Size"],"content":"\u003cdiv\u003eA diamond set perfect for an elegant night out. \u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003e \u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003e\u003cstrong\u003eFeatures\u003c\/strong\u003e\u003c\/div\u003e\n\u003cdiv\u003eDiamond details \u003cbr\u003eGold finish\u003c\/div\u003e\n\u003cdiv\u003e \u003c\/div\u003e\n\u003cdiv\u003e\n\u003cstrong\u003eFit Information\u003c\/strong\u003e\u003cbr\u003eLength: 50cm\u003c\/div\u003e"}); // 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'.