${function() {
const variantData = data.variant || {"id":"05a9e788-a418-4b64-bf68-1738e6c10e45","product_id":"01cd426f-adc3-49f7-aa4a-91bc913512fe","title":"White-S(4)","weight_unit":"lb","inventory_quantity":1000,"sku":"2111924723094-White-S(4)","barcode":"","position":1,"option1":"White","option2":"S(4)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/677c8fe241f62686eba002f23fd6dca8.jpeg","path":"677c8fe241f62686eba002f23fd6dca8.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":40.99,"min_quantity":1}],"weight":"0","compare_at_price":"40.99","price":"40.99","retail_price":"40.99","available":true,"url":"\/products\/pansies-floral-loose-embroidery-casual-dress-with-no-16240878?variant=05a9e788-a418-4b64-bf68-1738e6c10e45","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S(4)"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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 `
`;
}()}