${function() {
const variantData = data.variant || {"id":"ca26e283-d9a6-4af4-a480-1340f8bfc929","product_id":"cd26cb29-b59b-46b3-afaa-8fe547f20f27","title":"S-White","weight_unit":"kg","inventory_quantity":1000,"sku":"ALL23042706-S-White","barcode":"","position":1,"option1":"S","option2":"White","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0707cd0b7e98c3f9e29eb9ea0e3ea8c7.jpeg","path":"0707cd0b7e98c3f9e29eb9ea0e3ea8c7.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":35,"min_quantity":1}],"weight":"0","compare_at_price":"50","price":"35","retail_price":"50","available":true,"url":"\/products\/not-bossy-just-aggressively-helpful-sweatshirt094c664c-1cc6-47c3-88fe-6004334eb256?variant=ca26e283-d9a6-4af4-a480-1340f8bfc929","available_quantity":999999999,"options":[{"name":"Size","value":"S"},{"name":"Color","value":"White"}],"off_ratio":30,"flashsale_info":[],"sales":17};
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 `
`;
}()}