${function() {
const variantData = data.variant || {"id":"0f550e78-dcd4-40a9-bb71-9f9d76a25ab5","product_id":"79fbbc84-8fbe-4bc7-8aa6-28cc8d2dbb1e","title":"Brown-2XL","weight_unit":"g","inventory_quantity":99999,"sku":"102127050001","barcode":"","position":1,"option1":"Brown","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b54fedc2fc4e4a20bd0ff69d2cef3c5e.jpeg","path":"b54fedc2fc4e4a20bd0ff69d2cef3c5e.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"507","compare_at_price":"30.98","price":"29.99","retail_price":"30.98","available":true,"url":"\/products\/peace-love-christmas-printed-women-s-hoodies?variant=0f550e78-dcd4-40a9-bb71-9f9d76a25ab5","available_quantity":99999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"2XL"}],"off_ratio":3,"flashsale_info":[],"sales":1};
const saveType = "percentage";
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}
`
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"0f550e78-dcd4-40a9-bb71-9f9d76a25ab5","product_id":"79fbbc84-8fbe-4bc7-8aa6-28cc8d2dbb1e","title":"Brown-2XL","weight_unit":"g","inventory_quantity":99999,"sku":"102127050001","barcode":"","position":1,"option1":"Brown","option2":"2XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b54fedc2fc4e4a20bd0ff69d2cef3c5e.jpeg","path":"b54fedc2fc4e4a20bd0ff69d2cef3c5e.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"507","compare_at_price":"30.98","price":"29.99","retail_price":"30.98","available":true,"url":"\/products\/peace-love-christmas-printed-women-s-hoodies?variant=0f550e78-dcd4-40a9-bb71-9f9d76a25ab5","available_quantity":99999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"2XL"}],"off_ratio":3,"flashsale_info":[],"sales":1};
return `
`
}()}