${function() {
const variantData = data.variant || {"id":"07fc0cb4-9b93-4235-a85a-376af7ae9020","product_id":"e74892e4-6e50-44ef-b74c-68952ba7ca83","title":"Color-S","weight_unit":"kg","inventory_quantity":999,"sku":"098-230330-04-DW0073RKT4-Color-S","barcode":"","position":1,"option1":"Color","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9e010bae755197e76ff8c1c742d40acc.jpeg","path":"9e010bae755197e76ff8c1c742d40acc.jpeg","width":1650,"height":2200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0.45","compare_at_price":"31.99","price":"29.99","retail_price":"31.99","available":true,"url":"\/products\/womens-print-two-piece-dress-bnlx?variant=07fc0cb4-9b93-4235-a85a-376af7ae9020","available_quantity":999999999,"options":[{"name":"Color","value":"Color"},{"name":"Size","value":"S"}],"off_ratio":6,"flashsale_info":[],"sales":4};
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 `
`;
}()}