${function() {
const variantData = data.variant || {"id":"f628a1f1-afda-4571-9a0c-e3f6543a7bc8","product_id":"3a03c974-3635-4ac0-9426-f9715c04eadd","title":"white-S","weight_unit":"kg","inventory_quantity":1000,"sku":"162-240528-28-MT0071HERF-white-S","barcode":"","position":9,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8e8ef11eaff43a6288f2e671a24dab9f.jpeg","path":"8e8ef11eaff43a6288f2e671a24dab9f.jpeg","width":850,"height":1134,"alt":"","aspect_ratio":0.7495590828924162},"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\/pride-day-rainbow-element-rainbow-color-hand-be-kind-printed-casual-t-shirt?variant=f628a1f1-afda-4571-9a0c-e3f6543a7bc8","available_quantity":999999999,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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 `
`;
}()}