${function() {
const variantData = data.variant || {"id":"1632996d-83fa-4999-ad2a-55cc33d2bd6e","product_id":"aa5172fc-910c-4fca-929b-2c9df9761667","title":"apricot-L","weight_unit":"kg","inventory_quantity":0,"sku":"66210909964-apricot-L","barcode":"","position":1,"option1":"apricot","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/513dcd588dad30fbec2efc5d381dc188.jpeg","path":"513dcd588dad30fbec2efc5d381dc188.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.79,"min_quantity":1}],"weight":"0","compare_at_price":"38.3","price":"31.79","retail_price":"38.3","available":true,"url":"\/products\/autumn-and-winter-plus-fleece-hooded-loose-sweater-two-piece-suit?variant=1632996d-83fa-4999-ad2a-55cc33d2bd6e","available_quantity":999999999,"options":[{"name":"color","value":"apricot"},{"name":"size","value":"L"}],"off_ratio":17,"flashsale_info":[],"sales":19};
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 = 69;
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 `
`;
}()}