Page 1 of 1

Adding Custom Field Data To Invoice and Emails

Posted: Sat Jun 06, 2020 2:07 am
by Codester
Hi,

The online gift store I'm working on uses OpenCart 3.0.3.2. I have created a custom field (Recipient Mobile Number) that is part of the address fields. The data submitted by the customer in this field can only be viewed by checking the customer details. The problem is that the same customer can have different values for the custom field (Recipient Mobile No) for different orders. How can I make sure that the "Recipient Mobile No" is added in the delivery details fields in the order details?

It is also important that the "Recipient Mobile No" is added in the invoice and the order alert emails that are sent by the OpenCart system to the customer and the store administrator, both.

Thanks

Re: Adding Custom Field Data To Invoice and Emails

Posted: Thu Oct 08, 2020 1:36 am
by rjcalifornia
Codester wrote:
Sat Jun 06, 2020 2:07 am
Hi,

The online gift store I'm working on uses OpenCart 3.0.3.2. I have created a custom field (Recipient Mobile Number) that is part of the address fields. The data submitted by the customer in this field can only be viewed by checking the customer details. The problem is that the same customer can have different values for the custom field (Recipient Mobile No) for different orders. How can I make sure that the "Recipient Mobile No" is added in the delivery details fields in the order details?

It is also important that the "Recipient Mobile No" is added in the invoice and the order alert emails that are sent by the OpenCart system to the customer and the store administrator, both.

Thanks
Can you just check if the mobile number exists, and if it does remove the custom field?