${function() {
const variantData = data.variant || {"id":"a2bd7396-c9de-4e48-ab23-b0262c790491","product_id":"b8659019-e8ac-4a54-a56a-0cdf754923cd","title":"Green-S(US 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSGJ241108-Green-S(US 6-8)","barcode":"","position":17,"option1":"Green","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/de8e142108ae8f95d9d8285793c7323e.jpeg","path":"de8e142108ae8f95d9d8285793c7323e.jpeg","width":800,"height":1200,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"29.99","retail_price":"39.99","available":true,"url":"\/products\/casual-buttoned-cotton-and-linen-dress?variant=a2bd7396-c9de-4e48-ab23-b0262c790491","available_quantity":999999999,"options":[{"name":"color","value":"Green"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":25,"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 `
`;
}()}