${function() {
const variantData = data.variant || {"id":"fa8e330e-78b7-4d6e-85ed-b3fe0f4c9eb9","product_id":"57e4ae02-0d01-4efd-9fe3-caa2b0ba74ed","title":"white-S","weight_unit":"kg","inventory_quantity":998,"sku":"HY5420F-w-S-ichic","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e26531fd3f76ed087007c0b5e6338e6.jpeg","path":"0e26531fd3f76ed087007c0b5e6338e6.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.99","price":"29.99","retail_price":"31.99","available":true,"url":"\/products\/dandelion-print-cold-shoulder-slit-belted-casual-dress?variant=fa8e330e-78b7-4d6e-85ed-b3fe0f4c9eb9","available_quantity":999999999,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S"}],"off_ratio":6,"flashsale_info":[],"sales":6};
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 postageFreeAmount = 79;
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 `
`;
}()}