var selectCallbackProduct = function(variant, selector) {
novtheme.productPage({
money_format: theme.moneyFormat,
variant: variant,
selector: selector
})
};
$(document).ready(function() {
new Shopify.OptionSelectors('productSelect', {
product: {"id":7296334266574,"title":"NassifMD | PERI-ORBITAL COMPLEX Revitalising Eye Crème with Elasta-Derm C \u0026 AHA","handle":"untitled-dec1_16-50","description":"\u003cp\u003eAn intensive hydrating and lifting treatment for the eye area with immediate and lasting benefits.\u003c\/p\u003e\n\u003cp\u003e30ml\u003c\/p\u003e","published_at":"2023-12-03T10:54:34+02:00","created_at":"2023-12-01T16:50:08+02:00","vendor":"NassifMD","type":"","tags":[],"price":123300,"price_min":123300,"price_max":123300,"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":42297297043662,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"NassifMD | PERI-ORBITAL COMPLEX Revitalising Eye Crème with Elasta-Derm C \u0026 AHA","public_title":null,"options":["Default Title"],"price":123300,"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-0016.jpg?v=1701442503"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503","options":["Title"],"media":[{"alt":null,"id":28125236560078,"position":1,"preview_image":{"aspect_ratio":1.0,"height":591,"width":591,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503"},"aspect_ratio":1.0,"height":591,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503","width":591}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eAn intensive hydrating and lifting treatment for the eye area with immediate and lasting benefits.\u003c\/p\u003e\n\u003cp\u003e30ml\u003c\/p\u003e"},
onVariantSelected: selectCallbackProduct,
enableHistoryState: true
});
Shopify.linkOptionSelectors({"id":7296334266574,"title":"NassifMD | PERI-ORBITAL COMPLEX Revitalising Eye Crème with Elasta-Derm C \u0026 AHA","handle":"untitled-dec1_16-50","description":"\u003cp\u003eAn intensive hydrating and lifting treatment for the eye area with immediate and lasting benefits.\u003c\/p\u003e\n\u003cp\u003e30ml\u003c\/p\u003e","published_at":"2023-12-03T10:54:34+02:00","created_at":"2023-12-01T16:50:08+02:00","vendor":"NassifMD","type":"","tags":[],"price":123300,"price_min":123300,"price_max":123300,"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":42297297043662,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"NassifMD | PERI-ORBITAL COMPLEX Revitalising Eye Crème with Elasta-Derm C \u0026 AHA","public_title":null,"options":["Default Title"],"price":123300,"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-0016.jpg?v=1701442503"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503","options":["Title"],"media":[{"alt":null,"id":28125236560078,"position":1,"preview_image":{"aspect_ratio":1.0,"height":591,"width":591,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503"},"aspect_ratio":1.0,"height":591,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503","width":591}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eAn intensive hydrating and lifting treatment for the eye area with immediate and lasting benefits.\u003c\/p\u003e\n\u003cp\u003e30ml\u003c\/p\u003e"});
// 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":7296334266574,"title":"NassifMD | PERI-ORBITAL COMPLEX Revitalising Eye Crème with Elasta-Derm C \u0026 AHA","handle":"untitled-dec1_16-50","description":"\u003cp\u003eAn intensive hydrating and lifting treatment for the eye area with immediate and lasting benefits.\u003c\/p\u003e\n\u003cp\u003e30ml\u003c\/p\u003e","published_at":"2023-12-03T10:54:34+02:00","created_at":"2023-12-01T16:50:08+02:00","vendor":"NassifMD","type":"","tags":[],"price":123300,"price_min":123300,"price_max":123300,"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":42297297043662,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"NassifMD | PERI-ORBITAL COMPLEX Revitalising Eye Crème with Elasta-Derm C \u0026 AHA","public_title":null,"options":["Default Title"],"price":123300,"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-0016.jpg?v=1701442503"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503","options":["Title"],"media":[{"alt":null,"id":28125236560078,"position":1,"preview_image":{"aspect_ratio":1.0,"height":591,"width":591,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503"},"aspect_ratio":1.0,"height":591,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/IMG-0016.jpg?v=1701442503","width":591}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"\u003cp\u003eAn intensive hydrating and lifting treatment for the eye area with immediate and lasting benefits.\u003c\/p\u003e\n\u003cp\u003e30ml\u003c\/p\u003e"};
console.log(json_product);
});