${function() {
const variantData = data.variant || {"id":"3c87d269-83a1-4d8e-9c63-f9df31ba9f69","product_id":"b028c8ea-9b99-455f-95c3-2f73dc48574f","title":"Black (With Thin Fleece)-34","weight_unit":"kg","inventory_quantity":999,"sku":"BK4030-Black-34","barcode":"","position":1,"option1":"Black (With Thin Fleece)","option2":"34","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a16a5c8c79d902f20a428005bf8a657a.jpeg","path":"a16a5c8c79d902f20a428005bf8a657a.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.99,"min_quantity":1}],"weight":"0.8","compare_at_price":"0","price":"69.99","retail_price":"0","available":true,"url":"\/products\/lace-platform-boots-1?variant=3c87d269-83a1-4d8e-9c63-f9df31ba9f69","available_quantity":999,"options":[{"name":"Color","value":"Black (With Thin Fleece)"},{"name":"Size","value":"34"}],"off_ratio":0,"flashsale_info":[],"sales":3};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${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":"3c87d269-83a1-4d8e-9c63-f9df31ba9f69","product_id":"b028c8ea-9b99-455f-95c3-2f73dc48574f","title":"Black (With Thin Fleece)-34","weight_unit":"kg","inventory_quantity":999,"sku":"BK4030-Black-34","barcode":"","position":1,"option1":"Black (With Thin Fleece)","option2":"34","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a16a5c8c79d902f20a428005bf8a657a.jpeg","path":"a16a5c8c79d902f20a428005bf8a657a.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":69.99,"min_quantity":1}],"weight":"0.8","compare_at_price":"0","price":"69.99","retail_price":"0","available":true,"url":"\/products\/lace-platform-boots-1?variant=3c87d269-83a1-4d8e-9c63-f9df31ba9f69","available_quantity":999,"options":[{"name":"Color","value":"Black (With Thin Fleece)"},{"name":"Size","value":"34"}],"off_ratio":0,"flashsale_info":[],"sales":3};
return `
`
}()}
${function() {
const postageFreeAmount = 100;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}