${function() {
const variantData = data.variant || {"id":"c5ff7b08-a7a3-4d49-8d4b-3d801da9665d","product_id":"5fd1455d-1d38-4e95-8c66-85a44b823d98","title":"black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"SW23020506-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/83ee22a4a1a37ef974471adb0abca3bb.jpeg","path":"83ee22a4a1a37ef974471adb0abca3bb.jpeg","width":1030,"height":1339,"alt":"","aspect_ratio":0.7692307692307693},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0","compare_at_price":"56","price":"35.99","retail_price":"56","available":true,"url":"\/products\/there-s-power-in-the-name-of-jesus-sweatshirtcfa57f9a-01cd-4ab3-886c-ec7135c826d0?variant=c5ff7b08-a7a3-4d49-8d4b-3d801da9665d","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":36,"flashsale_info":[],"sales":9};
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 `
`;
}()}