${function() {
const variantData = data.variant || {"id":"a65e5d3d-6fcc-4576-b7ee-2097a9f217cd","product_id":"0446c132-8b80-42d9-ad09-8c329e2f8d0b","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"GAC23031528_BLK_S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/491a5c2d12bff04608abb259fbb85388.jpeg","path":"491a5c2d12bff04608abb259fbb85388.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.66","price":"16.99","retail_price":"33.66","available":true,"url":"\/products\/i-snatch-kisses-and-vice-versa-printed-t-shirt-for-men-23031528-1?variant=a65e5d3d-6fcc-4576-b7ee-2097a9f217cd","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":0};
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":"a65e5d3d-6fcc-4576-b7ee-2097a9f217cd","product_id":"0446c132-8b80-42d9-ad09-8c329e2f8d0b","title":"Black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"GAC23031528_BLK_S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/491a5c2d12bff04608abb259fbb85388.jpeg","path":"491a5c2d12bff04608abb259fbb85388.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.66","price":"16.99","retail_price":"33.66","available":true,"url":"\/products\/i-snatch-kisses-and-vice-versa-printed-t-shirt-for-men-23031528-1?variant=a65e5d3d-6fcc-4576-b7ee-2097a9f217cd","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":50,"flashsale_info":[],"sales":0};
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 `
`;
}()}