${function() {
const variantData = data.variant || {"id":"d8082d03-6be1-46b2-9d75-067014243a2b","product_id":"bc78eb34-3359-40bc-9e7f-0fe8f4a7490c","title":"Green-S(6-8)","weight_unit":"lb","inventory_quantity":999,"sku":"2098463779706-Green-S(6-8)","barcode":"","position":7,"option1":"Green","option2":"S(6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f91ffa80de87ed6323b07be2f8d21b0e.png","path":"f91ffa80de87ed6323b07be2f8d21b0e.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=d8082d03-6be1-46b2-9d75-067014243a2b","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"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 `
`;
}()}