${function() {
const variantData = data.variant || {"id":"0707c238-12ed-472a-a386-8bcb348a9120","product_id":"10f9f9e8-07eb-477f-a595-557231b5dde1","title":"2-S","weight_unit":"kg","inventory_quantity":1000,"sku":"C02306-S","barcode":"","position":9,"option1":"2","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/576838c815c58644f5dc90aaf9ac7a00.jpg","path":"576838c815c58644f5dc90aaf9ac7a00.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\/mens-shirt-hawaiian-wind-3d-print-floral-mens-casual-tops-lapel-summer-print-short-sleeved-cardigan-shirt?variant=0707c238-12ed-472a-a386-8bcb348a9120","available_quantity":999999999,"options":[{"name":"Color","value":"2"},{"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":"0707c238-12ed-472a-a386-8bcb348a9120","product_id":"10f9f9e8-07eb-477f-a595-557231b5dde1","title":"2-S","weight_unit":"kg","inventory_quantity":1000,"sku":"C02306-S","barcode":"","position":9,"option1":"2","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/576838c815c58644f5dc90aaf9ac7a00.jpg","path":"576838c815c58644f5dc90aaf9ac7a00.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\/mens-shirt-hawaiian-wind-3d-print-floral-mens-casual-tops-lapel-summer-print-short-sleeved-cardigan-shirt?variant=0707c238-12ed-472a-a386-8bcb348a9120","available_quantity":999999999,"options":[{"name":"Color","value":"2"},{"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 `
`;
}()}