$(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":1957750767702,"title":"GLASS HOUSES EARRINGS JE899","handle":"earrings-20","description":"Rectangle shape\u003cbr\u003eGold finish\u003cbr\u003eDiamante embellishment\u003cbr\u003ePierce closure\u003cbr\u003eLength: 4.5cm\u003cbr\u003eWidth: 1cm","published_at":"2019-02-08T16:57:48+11:00","created_at":"2019-02-06T14:48:10+11:00","vendor":"Bariano","type":"","tags":["accessories","black","bodycon","color-black","color-red","color-silver","grey","one-size","red","size-one-size","under-50"],"price":2995,"price_min":2995,"price_max":2995,"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":19526169985110,"title":"One Size \/ BLACK","option1":"One Size","option2":"BLACK","option3":null,"sku":"JE899-139570","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"GLASS HOUSES EARRINGS JE899 - One Size \/ BLACK","public_title":"One Size \/ BLACK","options":["One Size","BLACK"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":4,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":19526170017878,"title":"One Size \/ RED","option1":"One Size","option2":"RED","option3":null,"sku":"JE899-139568","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"GLASS HOUSES EARRINGS JE899 - One Size \/ RED","public_title":"One Size \/ RED","options":["One Size","RED"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":2,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":19526170050646,"title":"One Size \/ SILVER","option1":"One Size","option2":"SILVER","option3":null,"sku":"JE899-139569","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"GLASS HOUSES EARRINGS JE899 - One Size \/ SILVER","public_title":"One Size \/ SILVER","options":["One Size","SILVER"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":6,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15494.jpg?v=1549424890","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15494_98f02314-0118-4136-8df9-f1d957edb84b.jpg?v=1549424890"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15494.jpg?v=1549424890","options":["Size","Color"],"content":"Rectangle shape\u003cbr\u003eGold finish\u003cbr\u003eDiamante embellishment\u003cbr\u003ePierce closure\u003cbr\u003eLength: 4.5cm\u003cbr\u003eWidth: 1cm"}, onVariantSelected: selectCallback, enableHistoryState: true }); Shopify.linkOptionSelectors({"id":1957750767702,"title":"GLASS HOUSES EARRINGS JE899","handle":"earrings-20","description":"Rectangle shape\u003cbr\u003eGold finish\u003cbr\u003eDiamante embellishment\u003cbr\u003ePierce closure\u003cbr\u003eLength: 4.5cm\u003cbr\u003eWidth: 1cm","published_at":"2019-02-08T16:57:48+11:00","created_at":"2019-02-06T14:48:10+11:00","vendor":"Bariano","type":"","tags":["accessories","black","bodycon","color-black","color-red","color-silver","grey","one-size","red","size-one-size","under-50"],"price":2995,"price_min":2995,"price_max":2995,"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":19526169985110,"title":"One Size \/ BLACK","option1":"One Size","option2":"BLACK","option3":null,"sku":"JE899-139570","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"GLASS HOUSES EARRINGS JE899 - One Size \/ BLACK","public_title":"One Size \/ BLACK","options":["One Size","BLACK"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":4,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":19526170017878,"title":"One Size \/ RED","option1":"One Size","option2":"RED","option3":null,"sku":"JE899-139568","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"GLASS HOUSES EARRINGS JE899 - One Size \/ RED","public_title":"One Size \/ RED","options":["One Size","RED"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":2,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":19526170050646,"title":"One Size \/ SILVER","option1":"One Size","option2":"SILVER","option3":null,"sku":"JE899-139569","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"GLASS HOUSES EARRINGS JE899 - One Size \/ SILVER","public_title":"One Size \/ SILVER","options":["One Size","SILVER"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":6,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15494.jpg?v=1549424890","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15494_98f02314-0118-4136-8df9-f1d957edb84b.jpg?v=1549424890"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15494.jpg?v=1549424890","options":["Size","Color"],"content":"Rectangle shape\u003cbr\u003eGold finish\u003cbr\u003eDiamante embellishment\u003cbr\u003ePierce closure\u003cbr\u003eLength: 4.5cm\u003cbr\u003eWidth: 1cm"}); // 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'.