${function() {
const variantData = data.variant || {"id":"85808dd2-cf13-49f7-bccb-aed0a84cb34b","product_id":"921e9d87-93e0-494d-8d5b-91bd7c73a060","title":"Plum-S","weight_unit":"kg","inventory_quantity":1000,"sku":"101671900001","barcode":"","position":1,"option1":"Plum","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a4cb5962065ede0ada3afc8d3284971b.jpeg","path":"a4cb5962065ede0ada3afc8d3284971b.jpeg","width":667,"height":890,"alt":"","aspect_ratio":0.749438202247191},"wholesale_price":[{"price":18.98,"min_quantity":1}],"weight":"0","compare_at_price":"29.98","price":"18.98","retail_price":"29.98","available":true,"url":"\/products\/floral-crew-neck-vacation-casual-short-sleeve-blouse?variant=85808dd2-cf13-49f7-bccb-aed0a84cb34b","available_quantity":999999999,"options":[{"name":"Color","value":"Plum"},{"name":"Size","value":"S"}],"off_ratio":37,"flashsale_info":[],"sales":5};
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 `
`;
}()}