${function() {
const variantData = data.variant || {"id":"79e30942-5825-4c08-b39f-89a9b066872f","product_id":"8f3382d4-346c-4545-915f-842ebfa181dd","title":"Army Green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"LXY-220105-10-T1-Army Green-S","barcode":"","position":1,"option1":"Army Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1e0d5d1723eb76f2b79e7e972d8ebd9b.jpeg","path":"1e0d5d1723eb76f2b79e7e972d8ebd9b.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22.99","retail_price":"0","available":true,"url":"\/products\/leaf-tree-forest-print-short-sleeve-t-shirt?variant=79e30942-5825-4c08-b39f-89a9b066872f","available_quantity":999999999,"options":[{"name":"color","value":"Army Green"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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 `
`;
}()}