${function() {
const variantData = data.variant || {"id":"7daae8e9-78cf-4ae1-ad59-2759f6f21a80","product_id":"af065fd2-ec37-411e-9385-012b5fb21d8a","title":"S-White","weight_unit":"kg","inventory_quantity":999,"sku":"SW2302180-S-White","barcode":"","position":1,"option1":"S","option2":"White","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6b4a358db2d117f0d2c032b9f3b54df6.jpeg","path":"6b4a358db2d117f0d2c032b9f3b54df6.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"50","price":"35","retail_price":"50","available":true,"url":"\/products\/wife-mom-boss-sweatshirtb3282afd-23dd-4d00-bafb-05c3500db522-iktl?variant=7daae8e9-78cf-4ae1-ad59-2759f6f21a80","available_quantity":999999999,"options":[{"name":"Size","value":"S"},{"name":"Color","value":"White"}],"off_ratio":30,"flashsale_info":[],"sales":14};
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 `
`;
}()}