${function() {
const variantData = data.variant || {"id":"8e355378-6a9d-418c-841b-066d738c0204","product_id":"321707ea-7d5d-4873-8cf1-d50142b3fec5","title":"Dark Grey-S","weight_unit":"lb","inventory_quantity":999,"sku":"BJN361304-DGY00S","barcode":"","position":9,"option1":"Dark Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/482a6f061330b8639325ee45a6ca7fce.jpeg","path":"482a6f061330b8639325ee45a6ca7fce.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.99","price":"16.99","retail_price":"31.99","available":true,"url":"\/products\/womens-lgbt-he-heart-print-casual-tank-top?variant=8e355378-6a9d-418c-841b-066d738c0204","available_quantity":999999999,"options":[{"name":"Color","value":"Dark Grey"},{"name":"Size","value":"S"}],"off_ratio":47,"flashsale_info":[],"sales":77};
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 `
`;
}()}