${function() {
const variantData = data.variant || {"id":"23be80b0-466a-4b5e-8058-c8d5fbf828bb","product_id":"22f341cd-6062-4fb8-bf0c-013f2a46fbf7","title":"Grey-S","weight_unit":"kg","inventory_quantity":2000,"sku":"099-240717-A10-MT0071YFJX-Grey-S","barcode":"","position":9,"option1":"Grey","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f1decf4ee7121848ab36a4c6a257a6dc.jpeg","path":"f1decf4ee7121848ab36a4c6a257a6dc.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"21.99","price":"21.99","retail_price":"21.99","available":true,"url":"\/products\/stay-spooky-skeleton-hand-halloween-casual-print-t-shirt?variant=23be80b0-466a-4b5e-8058-c8d5fbf828bb","available_quantity":999999999,"options":[{"name":"Color","value":"Grey"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 `
`;
}()}