${function() {
const variantData = data.variant || {"id":"7bd89888-ba9e-4e51-8ecd-df712d4c2f42","product_id":"5ccf8387-3283-4f70-8f84-6fc37e49a54e","title":"Blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"206798635806-Blue-S","barcode":"","position":1,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c2cc2288619d5326366f825927f7f82f.jpeg","path":"c2cc2288619d5326366f825927f7f82f.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"35.59","price":"24.99","retail_price":"35.59","available":true,"url":"\/products\/womens-casual-dress-cotton-dress-swing-dress-midi-dress-cotton-basic-casual-outdoor-daily-crew-neck-pocket-smocked-half-sleeve-summer-spring-fall-2023-loose-fit-light-blue-black-white-pure-color-s-m?variant=7bd89888-ba9e-4e51-8ecd-df712d4c2f42","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"S"}],"off_ratio":30,"flashsale_info":[],"sales":22};
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 `
`;
}()}