${function() {
const variantData = data.variant || {"id":"cbc15f2b-9e0a-4365-8101-39a7447af526","product_id":"f05b783a-1f11-4ec9-bed4-60bf2b6450f0","title":"Multicolor-S","weight_unit":"kg","inventory_quantity":1000,"sku":"131A-240307-04-DW0170R48U-Multicolor-S","barcode":"","position":1,"option1":"Multicolor","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e6bbe581b2a1b15d826f0f9920817356.jpeg","path":"e6bbe581b2a1b15d826f0f9920817356.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":38.99,"min_quantity":1}],"weight":"0","compare_at_price":"38.99","price":"38.99","retail_price":"38.99","available":true,"url":"\/products\/womens-black-kitten-watching-the-horizon-art-symmetrical-printed-long-shirt-skirt?variant=cbc15f2b-9e0a-4365-8101-39a7447af526","available_quantity":999999999,"options":[{"name":"Color","value":"Multicolor"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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 `
`;
}()}