Summer sunscreen mask
${function() {
const variantData = data.variant || {"id":"d24b7f93-87f9-4bd1-bb97-4b9375552919","product_id":"8ee1aa84-0223-41da-ab3f-472805d86e31","title":"white","weight_unit":"kg","inventory_quantity":36,"sku":"\u9ad818-1-white-A0012636","barcode":"","position":2,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40ec6e60a502bbaf4aee7c9b731257f1.jpg","path":"40ec6e60a502bbaf4aee7c9b731257f1.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":10.8,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"10.8","retail_price":"0","available":true,"url":"\/products\/summer-sunscreen-mask?variant=d24b7f93-87f9-4bd1-bb97-4b9375552919","available_quantity":36,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":17};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"d24b7f93-87f9-4bd1-bb97-4b9375552919","product_id":"8ee1aa84-0223-41da-ab3f-472805d86e31","title":"white","weight_unit":"kg","inventory_quantity":36,"sku":"\u9ad818-1-white-A0012636","barcode":"","position":2,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/40ec6e60a502bbaf4aee7c9b731257f1.jpg","path":"40ec6e60a502bbaf4aee7c9b731257f1.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":10.8,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"10.8","retail_price":"0","available":true,"url":"\/products\/summer-sunscreen-mask?variant=d24b7f93-87f9-4bd1-bb97-4b9375552919","available_quantity":36,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":17};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}