${function() {
const freeAmount = 99;
const totalPrice = data?.total_price || data?.cart?.total_price || 0;
const amountDiff = freeAmount - totalPrice;
const percentDiff = (amountDiff > 0 ? (totalPrice / freeAmount * 100) : 100) + '%';
let tipText = `Your order is free delivery`;
if (amountDiff > 0) {
tipText = `
`;
}()}
Spend
more and get free shipping!
`;
}
return `
${tipText}
${item.product_title}
${item.options.map(option => option.value).join(' / ')}
${(item.parsedProperties || []).map((propertie)=>{
if (propertie.isImage){
return `${propertie.name}: View image
`
}else{
return `${propertie.name}: ${propertie.value}
`
}
}).join('')}
*${item.quantity}
Free gift
${
(item.discount_applications || []).map(discount_item => {
const discount_item_amount = discount_item.discount_amount || discount_item.amount || '';
return `
${discount_item.title}(- )
`
}).join('')
}
Cart
Add note
Write something here to seller.
${data.note || data.value}
-
Discount
${data.total_discount > 0 ? '-' : ''}
-
Subtotal
Taxes and shipping calculated at checkout
Your shopping cart is empty
Continue shopping
