${function() {
const variantData = data.variant || {"id":"65f084c6-d565-41bf-bca5-d7f8c3019728","product_id":"d6b56985-ddf8-4382-a699-d937967ff2af","title":"Red-S","weight_unit":"kg","inventory_quantity":999,"sku":"123-241026-17-DW0073NPFN-Red-S","barcode":"","position":1,"option1":"Red","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0363be36340360c1e93bf92d204e7012.jpeg","path":"0363be36340360c1e93bf92d204e7012.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"300","compare_at_price":"34.99","price":"34.99","retail_price":"34.99","available":true,"url":"\/products\/womens-floral-print-camisole-dress-short-sleeve-strappy-jacket-two-piece-suit-x00x?variant=65f084c6-d565-41bf-bca5-d7f8c3019728","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"S"}],"off_ratio":0,"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 `
`;
}()}