${function() {
const variantData = data.variant || {"id":"580ee90b-b5fc-42b4-ba60-64b72f0c155c","product_id":"98e7752e-7b9a-4dae-8693-d48124112986","title":"red-S","weight_unit":"kg","inventory_quantity":0,"sku":"X162-240509-34-PNBRF9XN2V-red-S","barcode":"","position":9,"option1":"red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f11efe5672fbc1243c6efab1d514259b.jpeg","path":"f11efe5672fbc1243c6efab1d514259b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"34.99","price":"34.99","retail_price":"34.99","available":true,"url":"\/products\/womens-round-neck-pocket-pleated-short-sleeved-linen-pocket-dress?variant=580ee90b-b5fc-42b4-ba60-64b72f0c155c","available_quantity":999999999,"options":[{"name":"Color","value":"red"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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 `
`;
}()}