${function() {
const variantData = data.variant || {"id":"6eba22ba-5723-4d38-a886-f929c51a4063","product_id":"5ccf8387-3283-4f70-8f84-6fc37e49a54e","title":"Green-S","weight_unit":"kg","inventory_quantity":999,"sku":"206798635806-Green-S","barcode":"","position":9,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/52e464ae386ba5bbb024325728890c13.jpeg","path":"52e464ae386ba5bbb024325728890c13.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=6eba22ba-5723-4d38-a886-f929c51a4063","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"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 `
`;
}()}