$(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":285576134680,"title":"Darling! Clutch","handle":"darling-clutch","description":"Diamante clutch\u003cbr\u003eGold detachable chain\u003cbr\u003eAsymetric click clasp","published_at":"2018-05-16T12:29:26+10:00","created_at":"2018-01-19T18:20:08+11:00","vendor":"Bariano","type":"","tags":["50-100","accessories","boldapp","color-gold","one-size","size-one-size"],"price":5495,"price_min":5495,"price_max":5495,"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":3387763261464,"title":"GOLD \/ One Size","option1":"GOLD","option2":"One Size","option3":null,"sku":"BAG1257-99841","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Darling! Clutch - GOLD \/ One Size","public_title":"GOLD \/ One Size","options":["GOLD","One Size"],"price":5495,"weight":0,"compare_at_price":null,"inventory_quantity":2,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":3387763294232,"title":"SILVER \/ One Size","option1":"SILVER","option2":"One Size","option3":null,"sku":"BAG1257-99840","requires_shipping":true,"taxable":false,"featured_image":null,"available":false,"name":"Darling! Clutch - SILVER \/ One Size","public_title":"SILVER \/ One Size","options":["SILVER","One Size"],"price":5495,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/13819.jpg?v=1521508263","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/13819_b01deb77-3f6f-4a41-b5f8-cc9707a9048c.jpg?v=1521508263"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/13819.jpg?v=1521508263","options":["Color","Size"],"content":"Diamante clutch\u003cbr\u003eGold detachable chain\u003cbr\u003eAsymetric click clasp"}, onVariantSelected: selectCallback, enableHistoryState: true }); Shopify.linkOptionSelectors({"id":285576134680,"title":"Darling! Clutch","handle":"darling-clutch","description":"Diamante clutch\u003cbr\u003eGold detachable chain\u003cbr\u003eAsymetric click clasp","published_at":"2018-05-16T12:29:26+10:00","created_at":"2018-01-19T18:20:08+11:00","vendor":"Bariano","type":"","tags":["50-100","accessories","boldapp","color-gold","one-size","size-one-size"],"price":5495,"price_min":5495,"price_max":5495,"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":3387763261464,"title":"GOLD \/ One Size","option1":"GOLD","option2":"One Size","option3":null,"sku":"BAG1257-99841","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Darling! Clutch - GOLD \/ One Size","public_title":"GOLD \/ One Size","options":["GOLD","One Size"],"price":5495,"weight":0,"compare_at_price":null,"inventory_quantity":2,"inventory_management":"shopify","inventory_policy":"deny","barcode":null},{"id":3387763294232,"title":"SILVER \/ One Size","option1":"SILVER","option2":"One Size","option3":null,"sku":"BAG1257-99840","requires_shipping":true,"taxable":false,"featured_image":null,"available":false,"name":"Darling! Clutch - SILVER \/ One Size","public_title":"SILVER \/ One Size","options":["SILVER","One Size"],"price":5495,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":null}],"images":["\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/13819.jpg?v=1521508263","\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/13819_b01deb77-3f6f-4a41-b5f8-cc9707a9048c.jpg?v=1521508263"],"featured_image":"\/\/cdn.shopify.com\/s\/files\/1\/1647\/7731\/products\/13819.jpg?v=1521508263","options":["Color","Size"],"content":"Diamante clutch\u003cbr\u003eGold detachable chain\u003cbr\u003eAsymetric click clasp"}); // 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'.