${function() {
const variantData = data.variant || {"id":"d6c152c7-8b4c-4816-b90a-4a98d301bb50","product_id":"bcc46768-fcc7-4760-be1a-a34d2d537b18","title":"Yellow-S","weight_unit":"kg","inventory_quantity":0,"sku":"149-240130-4-DW0110BXVK-Yellow-S","barcode":"","position":13,"option1":"Yellow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0b31ed2358dc3d635cb850e84133298b.jpeg","path":"0b31ed2358dc3d635cb850e84133298b.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"300","compare_at_price":"45","price":"45","retail_price":"45","available":true,"url":"\/products\/womens-classic-dot-print-maxi-dress?variant=d6c152c7-8b4c-4816-b90a-4a98d301bb50","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":36};
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 `
`;
}()}