var selectCallbackProduct = function(variant, selector) {
novtheme.productPage({
money_format: theme.moneyFormat,
variant: variant,
selector: selector
})
};
$(document).ready(function() {
new Shopify.OptionSelectors('productSelect', {
product: {"id":7302119751886,"title":"Almine | Cosmetic Bag","handle":"almine-cosmetic-bag","description":"","published_at":"2023-12-12T20:58:24+02:00","created_at":"2023-12-12T20:58:24+02:00","vendor":"Almine","type":"Accessories","tags":["Body","Eyes","Face","Make Up","Skincare"],"price":9900,"price_min":9900,"price_max":9900,"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":42310511755470,"title":"Yellow \u0026 Pink","option1":"Yellow \u0026 Pink","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Almine | Cosmetic Bag - Yellow \u0026 Pink","public_title":"Yellow \u0026 Pink","options":["Yellow \u0026 Pink"],"price":9900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":42310511788238,"title":"Blue","option1":"Blue","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Almine | Cosmetic Bag - Blue","public_title":"Blue","options":["Blue"],"price":9900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506","options":["Color"],"media":[{"alt":null,"id":28217225445582,"position":1,"preview_image":{"aspect_ratio":1.0,"height":459,"width":459,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506"},"aspect_ratio":1.0,"height":459,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506","width":459}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""},
onVariantSelected: selectCallbackProduct,
enableHistoryState: true
});
Shopify.linkOptionSelectors({"id":7302119751886,"title":"Almine | Cosmetic Bag","handle":"almine-cosmetic-bag","description":"","published_at":"2023-12-12T20:58:24+02:00","created_at":"2023-12-12T20:58:24+02:00","vendor":"Almine","type":"Accessories","tags":["Body","Eyes","Face","Make Up","Skincare"],"price":9900,"price_min":9900,"price_max":9900,"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":42310511755470,"title":"Yellow \u0026 Pink","option1":"Yellow \u0026 Pink","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Almine | Cosmetic Bag - Yellow \u0026 Pink","public_title":"Yellow \u0026 Pink","options":["Yellow \u0026 Pink"],"price":9900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":42310511788238,"title":"Blue","option1":"Blue","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Almine | Cosmetic Bag - Blue","public_title":"Blue","options":["Blue"],"price":9900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506","options":["Color"],"media":[{"alt":null,"id":28217225445582,"position":1,"preview_image":{"aspect_ratio":1.0,"height":459,"width":459,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506"},"aspect_ratio":1.0,"height":459,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506","width":459}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""});
// 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("Yellow \u0026 Pink").trigger('change');
var json_product = {"id":7302119751886,"title":"Almine | Cosmetic Bag","handle":"almine-cosmetic-bag","description":"","published_at":"2023-12-12T20:58:24+02:00","created_at":"2023-12-12T20:58:24+02:00","vendor":"Almine","type":"Accessories","tags":["Body","Eyes","Face","Make Up","Skincare"],"price":9900,"price_min":9900,"price_max":9900,"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":42310511755470,"title":"Yellow \u0026 Pink","option1":"Yellow \u0026 Pink","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Almine | Cosmetic Bag - Yellow \u0026 Pink","public_title":"Yellow \u0026 Pink","options":["Yellow \u0026 Pink"],"price":9900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]},{"id":42310511788238,"title":"Blue","option1":"Blue","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":false,"featured_image":null,"available":true,"name":"Almine | Cosmetic Bag - Blue","public_title":"Blue","options":["Blue"],"price":9900,"weight":0,"compare_at_price":null,"inventory_management":"shopify","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[]}],"images":["\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506"],"featured_image":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506","options":["Color"],"media":[{"alt":null,"id":28217225445582,"position":1,"preview_image":{"aspect_ratio":1.0,"height":459,"width":459,"src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506"},"aspect_ratio":1.0,"height":459,"media_type":"image","src":"\/\/www.wiinkcosmetics.com\/cdn\/shop\/files\/AlmineCosmeticBag.jpg?v=1702407506","width":459}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""};
console.log(json_product);
});