both contact number display
This commit is contained in:
parent
a47974b536
commit
89218f5fb7
@ -90,11 +90,12 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa
|
|||||||
billingAddressHtml += `${billing.city || ''} ${billing.province || ''} ${billing.zip || ''}<br/>`;
|
billingAddressHtml += `${billing.city || ''} ${billing.province || ''} ${billing.zip || ''}<br/>`;
|
||||||
}
|
}
|
||||||
if (billing.country) billingAddressHtml += `${billing.country}<br/>`;
|
if (billing.country) billingAddressHtml += `${billing.country}<br/>`;
|
||||||
if (billing.phone || orderData.phone) {
|
|
||||||
billingAddressHtml += `${billing.phone || orderData.phone}`;
|
|
||||||
}
|
|
||||||
if (contactNumber) {
|
if (contactNumber) {
|
||||||
billingAddressHtml += `<br/>Contact: ${contactNumber}`;
|
billingAddressHtml += `WhatsApp: ${contactNumber}`;
|
||||||
|
}
|
||||||
|
if (billing.phone || orderData.phone) {
|
||||||
|
if (contactNumber) billingAddressHtml += `<br/>`;
|
||||||
|
billingAddressHtml += `Contact Number: ${billing.phone || orderData.phone}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const paymentMethod = orderData.gateway || 'Request Quote';
|
const paymentMethod = orderData.gateway || 'Request Quote';
|
||||||
|
|||||||
@ -172,12 +172,13 @@ const generateInvoicePDF = async (orderData) => {
|
|||||||
doc.text(orderData.email || orderData.contact_email, 40, billTextY);
|
doc.text(orderData.email || orderData.contact_email, 40, billTextY);
|
||||||
billTextY += 13;
|
billTextY += 13;
|
||||||
}
|
}
|
||||||
if (billing.phone || orderData.phone) {
|
if (customContactNumber) {
|
||||||
doc.text(billing.phone || orderData.phone, 40, billTextY);
|
doc.text(`WhatsApp: ${customContactNumber}`, 40, billTextY);
|
||||||
billTextY += 13;
|
billTextY += 13;
|
||||||
}
|
}
|
||||||
if (customContactNumber) {
|
if (billing.phone || orderData.phone) {
|
||||||
doc.text(`Contact: ${customContactNumber}`, 40, billTextY);
|
doc.text(`Contact Number: ${billing.phone || orderData.phone}`, 40, billTextY);
|
||||||
|
billTextY += 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Order Details (Right)
|
// Order Details (Right)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user