${function() {
const variantData = data.variant || {"id":"52df192e-e21d-4276-8284-a73927a4da7f","product_id":"b92f602f-0eee-4355-91b9-469e9c529f2d","title":"caramel-S","weight_unit":"kg","inventory_quantity":999,"sku":"420516ypmyqz-caramel-S","barcode":"","position":1,"option1":"caramel","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/00ff68c5cdee2fc574b389cd7533238f.jpeg","path":"00ff68c5cdee2fc574b389cd7533238f.jpeg","width":900,"height":1125,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":30.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"30.99","retail_price":"0","available":true,"url":"\/products\/v-neck-traditional-afro-tribal-print-maxi-dress?variant=52df192e-e21d-4276-8284-a73927a4da7f","available_quantity":999999999,"options":[{"name":"Color","value":"caramel"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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 `
`;
}()}