${function() {
const variantData = data.variant || {"id":"e139c452-c2e9-4df6-9682-b787b1db62d9","product_id":"3cc41916-c3c7-42b9-9adb-946f52bc1716","title":"Colorful-S","weight_unit":"kg","inventory_quantity":1000,"sku":"X130-231219-10-K8WSCFE4SR-Colorful-S","barcode":"","position":1,"option1":"Colorful","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eed3a054cb0ea4fb14a9b327c66fa747.jpeg","path":"eed3a054cb0ea4fb14a9b327c66fa747.jpeg","width":1181,"height":1575,"alt":"","aspect_ratio":0.7498412698412699},"wholesale_price":[{"price":28,"min_quantity":1}],"weight":"0","compare_at_price":"28","price":"28","retail_price":"28","available":true,"url":"\/products\/womens-bohemian-western-cowgirl-sweater-long-coat?variant=e139c452-c2e9-4df6-9682-b787b1db62d9","available_quantity":999999999,"options":[{"name":"Color","value":"Colorful"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 `
`;
}()}