${function() {
const variantData = data.variant || {"id":"a2002cdd-7c40-4dc6-875c-e44bbfb58920","product_id":"a8003bbc-6407-4755-9cb4-0bc224aeede0","title":"Blau-S(38-40)","weight_unit":"kg","inventory_quantity":1000,"sku":"2071196158214-Blau-S(38-40)","barcode":"","position":1,"option1":"Blau","option2":"S(38-40)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ab0dba8aa263ed8995aa3c2cb240afc3.jpeg","path":"ab0dba8aa263ed8995aa3c2cb240afc3.jpeg","width":633,"height":844,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":19.19,"min_quantity":1}],"weight":"0","compare_at_price":"15.19","price":"19.19","retail_price":"15.19","available":true,"url":"\/products\/casual-plain-spring-high-elasticity-daily-long-legging-h-line-regular-leggings-for-women-14705209?variant=a2002cdd-7c40-4dc6-875c-e44bbfb58920","available_quantity":999999999,"options":[{"name":"Color","value":"Blau"},{"name":"Size","value":"S(38-40)"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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 `
`;
}()}