jQuery(function($) {
new Shopify.OptionSelectors('productSelect', {
product: {"id":235357693,"title":"BBB","handle":"b","description":"This is product B ...","published_at":"2014-02-08T23:18:40+00:00","created_at":"2014-02-08T23:41:27+00:00","vendor":"Spooky","type":"LETTER","tags":["LETTERB"],"price":1000,"price_min":1000,"price_max":1000,"available":true,"price_varies":false,"compare_at_price":1000,"compare_at_price_min":1000,"compare_at_price_max":1000,"compare_at_price_varies":false,"variants":[{"id":533017245,"title":"RED","option1":"RED","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"BBB - RED","public_title":"RED","options":["RED"],"price":1000,"weight":907,"compare_at_price":1000,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"continue","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":533017249,"title":"BLUE","option1":"BLUE","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"BBB - BLUE","public_title":"BLUE","options":["BLUE"],"price":1000,"weight":907,"compare_at_price":1000,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"continue","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":533017257,"title":"YELLOW","option1":"YELLOW","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"BBB - YELLOW","public_title":"YELLOW","options":["YELLOW"],"price":1000,"weight":907,"compare_at_price":1000,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"continue","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":533017261,"title":"GREEN","option1":"GREEN","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"BBB - GREEN","public_title":"GREEN","options":["GREEN"],"price":1000,"weight":907,"compare_at_price":1000,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"continue","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":533017265,"title":"ORANGE","option1":"ORANGE","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"BBB - ORANGE","public_title":"ORANGE","options":["ORANGE"],"price":1000,"weight":907,"compare_at_price":1000,"inventory_quantity":10,"inventory_management":"shopify","inventory_policy":"continue","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\/IMG_4063.JPG?v=1571708556","\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4061.JPG?v=1571708556","\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4062.JPG?v=1571708556","\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4060.JPG?v=1571708556","\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4059.JPG?v=1571708556"],"featured_image":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4063.JPG?v=1571708556","options":["Color"],"media":[{"alt":null,"id":27343323170,"position":1,"preview_image":{"aspect_ratio":0.75,"height":400,"width":300,"src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4063.JPG?v=1571708556"},"aspect_ratio":0.75,"height":400,"media_type":"image","src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4063.JPG?v=1571708556","width":300},{"alt":null,"id":27343355938,"position":2,"preview_image":{"aspect_ratio":0.75,"height":400,"width":300,"src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4061.JPG?v=1571708556"},"aspect_ratio":0.75,"height":400,"media_type":"image","src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4061.JPG?v=1571708556","width":300},{"alt":null,"id":27343388706,"position":3,"preview_image":{"aspect_ratio":0.75,"height":400,"width":300,"src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4062.JPG?v=1571708556"},"aspect_ratio":0.75,"height":400,"media_type":"image","src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4062.JPG?v=1571708556","width":300},{"alt":null,"id":27343421474,"position":4,"preview_image":{"aspect_ratio":0.75,"height":400,"width":300,"src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4060.JPG?v=1571708556"},"aspect_ratio":0.75,"height":400,"media_type":"image","src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4060.JPG?v=1571708556","width":300},{"alt":null,"id":27343454242,"position":5,"preview_image":{"aspect_ratio":0.75,"height":400,"width":300,"src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4059.JPG?v=1571708556"},"aspect_ratio":0.75,"height":400,"media_type":"image","src":"\/\/kiss-115.myshopify.com\/cdn\/shop\/products\/IMG_4059.JPG?v=1571708556","width":300}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"This is product B ..."},
onVariantSelected: selectCallback
});
// Add label if only one product option and it isn't 'Title'. Could be 'Size'.
$('.selector-wrapper:eq(0)').prepend('');
// 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("RED").trigger('change');
});
STU PRODUCT EXPERIMENTS
product - id.... 235357693 product - title.... BBB product - handle.... b product - type.... LETTER product - vendor.... Spooky 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.... £10.00 GBP product - compare at price max.... £10.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 product - available.... true product - collections....
2012
2013
All products
product - featured image.... product - images.... product - description.... This is product B ... product - url.... /products/b product - options.... Color product - tags.... LETTERB product - content.... This is product B ... product - images....