jQuery(function($) {
new Shopify.OptionSelectors('productSelect', {
product: {"id":340912341,"title":"TEST PRODUCT FOR SOLD OUT OPTION","handle":"test-product-for-sold-out-option","description":"test product description","published_at":"2014-07-08T11:00:44+01:00","created_at":"2014-07-08T11:04:37+01:00","vendor":"kiss","type":"Gift Card","tags":[],"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":832501777,"title":"small \/ red","option1":"small","option2":"red","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"TEST PRODUCT FOR SOLD OUT OPTION - small \/ red","public_title":"small \/ red","options":["small","red"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501781,"title":"small \/ blue","option1":"small","option2":"blue","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"TEST PRODUCT FOR SOLD OUT OPTION - small \/ blue","public_title":"small \/ blue","options":["small","blue"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501785,"title":"small \/ white","option1":"small","option2":"white","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"TEST PRODUCT FOR SOLD OUT OPTION - small \/ white","public_title":"small \/ white","options":["small","white"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501789,"title":"medium \/ red","option1":"medium","option2":"red","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"TEST PRODUCT FOR SOLD OUT OPTION - medium \/ red","public_title":"medium \/ red","options":["medium","red"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501793,"title":"medium \/ blue","option1":"medium","option2":"blue","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"TEST PRODUCT FOR SOLD OUT OPTION - medium \/ blue","public_title":"medium \/ blue","options":["medium","blue"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501797,"title":"medium \/ white","option1":"medium","option2":"white","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"TEST PRODUCT FOR SOLD OUT OPTION - medium \/ white","public_title":"medium \/ white","options":["medium","white"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501801,"title":"large \/ red","option1":"large","option2":"red","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"TEST PRODUCT FOR SOLD OUT OPTION - large \/ red","public_title":"large \/ red","options":["large","red"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501805,"title":"large \/ blue","option1":"large","option2":"blue","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"TEST PRODUCT FOR SOLD OUT OPTION - large \/ blue","public_title":"large \/ blue","options":["large","blue"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":"shopify","inventory_policy":"deny","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":832501809,"title":"large \/ white","option1":"large","option2":"white","option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":false,"name":"TEST PRODUCT FOR SOLD OUT OPTION - large \/ white","public_title":"large \/ white","options":["large","white"],"price":1000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"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\/where_is_the_noise.jpg?v=1571708556"],"featured_image":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/where_is_the_noise.jpg?v=1571708556","options":["Size","Color"],"media":[{"alt":null,"id":32168345634,"position":1,"preview_image":{"aspect_ratio":1.333,"height":525,"width":700,"src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/where_is_the_noise.jpg?v=1571708556"},"aspect_ratio":1.333,"height":525,"media_type":"image","src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/where_is_the_noise.jpg?v=1571708556","width":700}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"test product description"},
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("small").trigger('change');
$('.single-option-selector:eq(1)').val("red").trigger('change');
});
STU PRODUCT EXPERIMENTS
product - id.... 340912341 product - title.... TEST PRODUCT FOR SOLD OUT OPTION product - handle.... test-product-for-sold-out-option product - type.... Gift Card product - vendor.... kiss product - price.... £10.00 GBP product - price min.... £10.00 GBP product - price max.... £10.00 GBP product - price varies.... false product - compare at price min.... £0.00 GBP product - compare at price max.... £0.00 GBP product - compare at price varies.... false product - variants..(£price).. £10.00 GBP£10.00 GBP£10.00 GBP£10.00 GBP£10.00 GBP£10.00 GBP£10.00 GBP£10.00 GBP£10.00 GBP product - available.... true product - collections....
All products
product - featured image.... product - images.... product - description.... test product description product - url.... /products/test-product-for-sold-out-option product - options.... SizeColor product - tags.... product - content.... test product description product - images....