${function() {
const variantData = data.variant || {"id":"0b709b6a-2582-4f23-b396-219b53a67fea","product_id":"ff1df80f-e82c-4240-a182-f457d60d534f","title":"Colorful-S","weight_unit":"kg","inventory_quantity":999,"sku":"103-221019-A5-UULKLDVC6G-Colorful-S","barcode":"","position":1,"option1":"Colorful","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6abd49a7c0150f739264ff2ca9a452f4.jpeg","path":"6abd49a7c0150f739264ff2ca9a452f4.jpeg","width":667,"height":890,"alt":"","aspect_ratio":0.749438202247191},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"25.99","retail_price":"0","available":true,"url":"\/products\/womens-autumn-and-winter-maple-leaves-cute-fox-casual-sweatshirt?variant=0b709b6a-2582-4f23-b396-219b53a67fea","available_quantity":999999999,"options":[{"name":"Color","value":"Colorful"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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 `
`;
}()}