${function() {
const variantData = data.variant || {"id":"7699b173-d977-40b5-8cbf-0c44085a7deb","product_id":"08527d28-218f-4c60-8104-9994aca3af82","title":"Green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"20230711-A18-Green-S","barcode":"","position":9,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d1484c940989293b62eccf245a1386ef.jpg","path":"d1484c940989293b62eccf245a1386ef.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"46.99","price":"26.99","retail_price":"46.99","available":true,"url":"\/products\/hawaii-short-sleeve-lapel-shirt-gray-green-blue-yellow-s-m-l-xl-2xl-3xl-4xl-5xl?variant=7699b173-d977-40b5-8cbf-0c44085a7deb","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":1};
const saveType = "percentage";
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 variantData = data.variant || {"id":"7699b173-d977-40b5-8cbf-0c44085a7deb","product_id":"08527d28-218f-4c60-8104-9994aca3af82","title":"Green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"20230711-A18-Green-S","barcode":"","position":9,"option1":"Green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d1484c940989293b62eccf245a1386ef.jpg","path":"d1484c940989293b62eccf245a1386ef.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"46.99","price":"26.99","retail_price":"46.99","available":true,"url":"\/products\/hawaii-short-sleeve-lapel-shirt-gray-green-blue-yellow-s-m-l-xl-2xl-3xl-4xl-5xl?variant=7699b173-d977-40b5-8cbf-0c44085a7deb","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"S"}],"off_ratio":43,"flashsale_info":[],"sales":1};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 89;
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 `
`;
}()}