${function() {
const variantData = data.variant || {"id":"00a93d95-d308-4bc1-9638-40ab331297bf","product_id":"c907a0c0-7e55-4076-bcdb-76d1e3149172","title":"1-One Size","weight_unit":"g","inventory_quantity":99999,"sku":"100983160001","barcode":"1-One SizeA00124501","position":1,"option1":"1","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/33cea681bfb828568ce96f23dcd2693b.jpeg","path":"33cea681bfb828568ce96f23dcd2693b.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.98,"min_quantity":1}],"weight":"300","compare_at_price":"23.98","price":"23.98","retail_price":"23.98","available":true,"url":"\/products\/hippie-home-furnishing-cloth-tapestry-beach-towel-window-curtain?variant=00a93d95-d308-4bc1-9638-40ab331297bf","available_quantity":99999,"options":[{"name":"Color","value":"1"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":175};
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}
`
}()}
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"00a93d95-d308-4bc1-9638-40ab331297bf","product_id":"c907a0c0-7e55-4076-bcdb-76d1e3149172","title":"1-One Size","weight_unit":"g","inventory_quantity":99999,"sku