${function() {
const variantData = data.variant || {"id":"c7d6c598-6255-430b-8c7d-5a3d28f6c58f","product_id":"13bd0ad8-72c0-45f8-8e8a-dcc67608f32c","title":"Multicolor-S","weight_unit":"kg","inventory_quantity":1000,"sku":"cuffe-L2FLGL315722","barcode":"","position":1,"option1":"Multicolor","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6476fb921793fdcd426225f9c06fd204.jpeg","path":"6476fb921793fdcd426225f9c06fd204.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"19.99","price":"19.99","retail_price":"19.99","available":true,"url":"\/products\/womens-casual-oil-painting-flowers-printed-short-sleeve-t-shirt?variant=c7d6c598-6255-430b-8c7d-5a3d28f6c58f","available_quantity":999999999,"options":[{"name":"color","value":"Multicolor"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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 `
`;
}()}