$(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":1957751652438,"title":"STARSTRUCK EARRINGS JE910","handle":"earrings-21","description":"Thin star hoop\u003cbr\u003ePierce closure\u003cbr\u003eWidth: 8cm\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e","published_at":"2019-02-12T12:31:59+11:00","created_at":"2019-02-06T14:54:09+11:00","vendor":"Bariano","type":"","tags":["accessories","color-antique-gold","color-gold","gold","new arrivals","one-size","size-one-size","under-50"],"price":1995,"price_min":1995,"price_max":1995,"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":19526174769238,"title":"One Size \/ GOLD","option1":"One Size","option2":"GOLD","option3":null,"sku":"JE910-139539","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"STARSTRUCK EARRINGS JE910 - One Size \/ GOLD","public_title":"One Size \/ GOLD","options":["One Size","GOLD"],"price":1995,"weight":0,"compare_at_price":null,"inventory_quantity":1,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15498.jpg?v=1549425249","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15498_550eb126-5569-4ef3-8406-b9e46fd830c0.jpg?v=1549425249"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15498.jpg?v=1549425249","options":["Size","Color"],"content":"Thin star hoop\u003cbr\u003ePierce closure\u003cbr\u003eWidth: 8cm\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e"}, onVariantSelected: selectCallback, enableHistoryState: true }); Shopify.linkOptionSelectors({"id":1957751652438,"title":"STARSTRUCK EARRINGS JE910","handle":"earrings-21","description":"Thin star hoop\u003cbr\u003ePierce closure\u003cbr\u003eWidth: 8cm\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e","published_at":"2019-02-12T12:31:59+11:00","created_at":"2019-02-06T14:54:09+11:00","vendor":"Bariano","type":"","tags":["accessories","color-antique-gold","color-gold","gold","new arrivals","one-size","size-one-size","under-50"],"price":1995,"price_min":1995,"price_max":1995,"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":19526174769238,"title":"One Size \/ GOLD","option1":"One Size","option2":"GOLD","option3":null,"sku":"JE910-139539","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"STARSTRUCK EARRINGS JE910 - One Size \/ GOLD","public_title":"One Size \/ GOLD","options":["One Size","GOLD"],"price":1995,"weight":0,"compare_at_price":null,"inventory_quantity":1,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15498.jpg?v=1549425249","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15498_550eb126-5569-4ef3-8406-b9e46fd830c0.jpg?v=1549425249"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15498.jpg?v=1549425249","options":["Size","Color"],"content":"Thin star hoop\u003cbr\u003ePierce closure\u003cbr\u003eWidth: 8cm\u003cbr\u003e\u003cbr\u003e\u003cbr\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'.