$(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":1953531068502,"title":"MY STARS! EARRINGS JE905","handle":"earrings-8","description":"Teardrop shape\u003cbr\u003ePierce closure\u003cbr\u003eDiamond embellishment\u003cbr\u003eLength: 4cm","published_at":"2019-02-12T12:31:02+11:00","created_at":"2019-02-01T17:15:10+11:00","vendor":"Bariano","type":"","tags":["accessories","color-silver","grey","one-size","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":19513058066518,"title":"One Size \/ SILVER","option1":"One Size","option2":"SILVER","option3":null,"sku":"JE905-139551","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"MY STARS! EARRINGS JE905 - One Size \/ SILVER","public_title":"One Size \/ SILVER","options":["One Size","SILVER"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":5,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15426.jpg?v=1549260839","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/IMG_1775.jpg?v=1549337255","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15426_9df0ce24-5873-44de-a061-50d578cbd62f.jpg?v=1549260839"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15426.jpg?v=1549260839","options":["Size","Color"],"content":"Teardrop shape\u003cbr\u003ePierce closure\u003cbr\u003eDiamond embellishment\u003cbr\u003eLength: 4cm"}, onVariantSelected: selectCallback, enableHistoryState: true }); Shopify.linkOptionSelectors({"id":1953531068502,"title":"MY STARS! EARRINGS JE905","handle":"earrings-8","description":"Teardrop shape\u003cbr\u003ePierce closure\u003cbr\u003eDiamond embellishment\u003cbr\u003eLength: 4cm","published_at":"2019-02-12T12:31:02+11:00","created_at":"2019-02-01T17:15:10+11:00","vendor":"Bariano","type":"","tags":["accessories","color-silver","grey","one-size","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":19513058066518,"title":"One Size \/ SILVER","option1":"One Size","option2":"SILVER","option3":null,"sku":"JE905-139551","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"MY STARS! EARRINGS JE905 - One Size \/ SILVER","public_title":"One Size \/ SILVER","options":["One Size","SILVER"],"price":2995,"weight":0,"compare_at_price":null,"inventory_quantity":5,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15426.jpg?v=1549260839","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/IMG_1775.jpg?v=1549337255","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15426_9df0ce24-5873-44de-a061-50d578cbd62f.jpg?v=1549260839"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/15426.jpg?v=1549260839","options":["Size","Color"],"content":"Teardrop shape\u003cbr\u003ePierce closure\u003cbr\u003eDiamond embellishment\u003cbr\u003eLength: 4cm"}); // 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'.