${function() {
const variantData = data.variant || {"id":"989c9092-84e0-466e-bab7-987354f767e2","product_id":"ccac8e69-30e9-4210-87be-ca10ba94595b","title":"beige-S","weight_unit":"kg","inventory_quantity":1000,"sku":"T22092617-beige-S","barcode":"","position":3,"option1":"beige","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/38054a400fd3b04f70a1a32149710bec.jpeg","path":"38054a400fd3b04f70a1a32149710bec.jpeg","width":540,"height":702,"alt":"","aspect_ratio":0.7692307692307693},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"55","price":"35","retail_price":"55","available":true,"url":"\/products\/dear-person-behind-me-love-like-jesus-sweatshirtc014079f-182f-48ba-8f47-60e3b0139572?variant=989c9092-84e0-466e-bab7-987354f767e2","available_quantity":999999999,"options":[{"name":"color","value":"beige"},{"name":"size","value":"S"}],"off_ratio":36,"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 `
`;
}()}