${function() {
const variantData = data.variant || {"id":"731be85d-8e11-4025-ac0a-81cad41d9056","product_id":"3db18518-31c8-4da1-922b-adcef4c79e24","title":"apricot-3XL","weight_unit":"kg","inventory_quantity":0,"sku":"6621092968-apricot-3XL","barcode":"","position":1,"option1":"apricot","option2":"3XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e8553a00bb1e8ecc3ca81fdbe71c51ae.jpeg","path":"e8553a00bb1e8ecc3ca81fdbe71c51ae.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":68.52,"min_quantity":1}],"weight":"0","compare_at_price":"85.65","price":"68.52","retail_price":"85.65","available":true,"url":"\/products\/ladies-fashion-twist-knit-suit-skirt?variant=731be85d-8e11-4025-ac0a-81cad41d9056","available_quantity":999999999,"options":[{"name":"color","value":"apricot"},{"name":"size","value":"3XL"}],"off_ratio":20,"flashsale_info":[],"sales":26};
const saveType = "percentage";
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 = 69;
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 `
`;
}()}