var selectCallbackProduct = function(variant, selector) {
novtheme.productPage({
money_format: theme.moneyFormat,
variant: variant,
selector: selector
})
};
$(document).ready(function() {
new Shopify.OptionSelectors('productSelect', {
product: {"id":7339859738830,"title":"Comfort Zone | Makeup Remover","handle":"comfort-zone-makeup-remover","description":"","published_at":"2024-02-25T13:06:58+02:00","created_at":"2024-02-25T13:06:00+02:00","vendor":"Comfort Zone","type":"","tags":[],"price":49000,"price_min":49000,"price_max":49000,"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":42413368344782,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Comfort Zone | Makeup Remover","public_title":null,"options":["Default Title"],"price":49000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234","options":["Title"],"media":[{"alt":null,"id":28435026706638,"position":1,"preview_image":{"aspect_ratio":1.0,"height":768,"width":768,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234"},"aspect_ratio":1.0,"height":768,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234","width":768}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""},
onVariantSelected: selectCallbackProduct,
enableHistoryState: true
});
Shopify.linkOptionSelectors({"id":7339859738830,"title":"Comfort Zone | Makeup Remover","handle":"comfort-zone-makeup-remover","description":"","published_at":"2024-02-25T13:06:58+02:00","created_at":"2024-02-25T13:06:00+02:00","vendor":"Comfort Zone","type":"","tags":[],"price":49000,"price_min":49000,"price_max":49000,"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":42413368344782,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Comfort Zone | Makeup Remover","public_title":null,"options":["Default Title"],"price":49000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234","options":["Title"],"media":[{"alt":null,"id":28435026706638,"position":1,"preview_image":{"aspect_ratio":1.0,"height":768,"width":768,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234"},"aspect_ratio":1.0,"height":768,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234","width":768}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""});
// 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'.
$('.selector-wrapper').hide();
// Auto-select first available variant on page load. Otherwise the product looks sold out.
$('.single-option-selector:eq(0)').val("Default Title").trigger('change');
var json_product = {"id":7339859738830,"title":"Comfort Zone | Makeup Remover","handle":"comfort-zone-makeup-remover","description":"","published_at":"2024-02-25T13:06:58+02:00","created_at":"2024-02-25T13:06:00+02:00","vendor":"Comfort Zone","type":"","tags":[],"price":49000,"price_min":49000,"price_max":49000,"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":42413368344782,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Comfort Zone | Makeup Remover","public_title":null,"options":["Default Title"],"price":49000,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":null,"requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234","options":["Title"],"media":[{"alt":null,"id":28435026706638,"position":1,"preview_image":{"aspect_ratio":1.0,"height":768,"width":768,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234"},"aspect_ratio":1.0,"height":768,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0132.webp?v=1708859234","width":768}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""};
console.log(json_product);
});