jQuery(function($) {
new Shopify.OptionSelectors('productSelect', {
product: {"id":239967401,"title":"XXX","handle":"x","description":"\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.This is the stock description for all products.This is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003eThis is the stock description for all products. This is the stock description for all products.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eVarious sizes and colours available.\u003c\/p\u003e","published_at":"2014-02-15T02:56:00+00:00","created_at":"2014-02-15T02:57:10+00:00","vendor":"kiss","type":"LETTER","tags":["triple"],"price":1000,"price_min":1000,"price_max":1000,"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":544782681,"title":"Default","option1":"Default","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"XXX","public_title":null,"options":["Default"],"price":1000,"weight":907,"compare_at_price":null,"inventory_quantity":50,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":544785553,"title":"NEGATIVE","option1":"NEGATIVE","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"XXX - NEGATIVE","public_title":"NEGATIVE","options":["NEGATIVE"],"price":1000,"weight":907,"compare_at_price":null,"inventory_quantity":50,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/b32de4f4205662be9c417d5f2889ee1d.jpeg?v=1571708556"],"featured_image":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/b32de4f4205662be9c417d5f2889ee1d.jpeg?v=1571708556","options":["Title"],"media":[{"alt":null,"id":27527053346,"position":1,"preview_image":{"aspect_ratio":0.75,"height":1024,"width":768,"src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/b32de4f4205662be9c417d5f2889ee1d.jpeg?v=1571708556"},"aspect_ratio":0.75,"height":1024,"media_type":"image","src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/b32de4f4205662be9c417d5f2889ee1d.jpeg?v=1571708556","width":768}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan style=\"line-height: 1.5;\"\u003eThis is the stock description for all products.This is the stock description for all products.This is the stock description for all products.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003eThis is the stock description for all products. This is the stock description for all products.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eVarious sizes and colours available.\u003c\/p\u003e"},
onVariantSelected: selectCallback
});
// 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'.
// Auto-select first available variant on page load. Otherwise the product looks sold out.
$('.single-option-selector:eq(0)').val("Default").trigger('change');
});