${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
${ data.originData.message }
${data.originData.message}
Add
`
}()}
${data.map( item => {
return `
${item}
`
}).join('')}
Below discount codes are unavailable
${data.map( item => {
return `
${item}
`
}).join('')}
${function(){
const code_data = data.originData.list;
if (!code_data || !code_data.length) return '';
const recommendDom = `
Recommend discount codes
`;
const discountCodeListDom = code_data.map( item => {
item.end_at = item.end_at == -1 ? item.end_at : item.end_at * 1000;
item.start_at *= 1000;
return `
-
`
}).join('');
return `
${discountCodeListDom}
`
}()}
${item.discount_text}
${item.code}
${recommendDom}
${recommendDom}
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