${function() {
const variantData = data.variant || {"id":"17eda89f-0c6a-4c00-9df1-d28b8fd29c33","product_id":"bc78eb34-3359-40bc-9e7f-0fe8f4a7490c","title":"Black-S(6-8)","weight_unit":"lb","inventory_quantity":1000,"sku":"2098463779706-Black-S(6-8)","barcode":"","position":1,"option1":"Black","option2":"S(6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6bd2d8919b84d0b0675ed861124903ea.png","path":"6bd2d8919b84d0b0675ed861124903ea.png","width":633,"height":844,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":18.99,"min_quantity":1}],"weight":"0","compare_at_price":"18.99","price":"18.99","retail_price":"18.99","available":true,"url":"\/products\/women-s-i-m-with-the-banned-flowers-book-lover-gift-cotton-blend-casual-shirt-16043127?variant=17eda89f-0c6a-4c00-9df1-d28b8fd29c33","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S(6-8)"}],"off_ratio":0,"flashsale_info":[],"sales":36};
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 `
`;
}()}