${function() {
const variantData = data.variant || {"id":"7bc12aad-1cb6-4248-800d-956d61eba95f","product_id":"be89ce8f-9efc-409e-89b7-5f7002f4df32","title":"Style1-Onesize","weight_unit":"kg","inventory_quantity":1000,"sku":"X125-241112-25-XJMATXJXRQ-Style10-Onesize","barcode":"","position":1,"option1":"Style1","option2":"Onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/70675f52c9ddb6d11204bc75491bcd8a.jpeg","path":"70675f52c9ddb6d11204bc75491bcd8a.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":true,"url":"\/products\/christmas-ankola-red-scarf?variant=7bc12aad-1cb6-4248-800d-956d61eba95f","available_quantity":999999999,"options":[{"name":"Color","value":"Style1"},{"name":"Size","value":"Onesize"}],"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 `
`;
}()}