Page 1 of 1
email address in notification email
Posted: Mon Feb 10, 2025 6:16 pm
by martindavinci
1.0.8.19 - php8.0
I had in version Osc 2.3.4 in the confirmation email to the customer in addition to the billing and delivery address, the customer's phone number and email address. Is there a simple way for me to put it back in the 'notification' email? I just can't get it to work. It would help me a lot.
Re: email address in notification email
Posted: Tue Feb 11, 2025 2:19 pm
by heatherbell
martindavinci wrote: ↑Mon Feb 10, 2025 6:16 pm customer's phone number and email address.
Depends on where and how you want to output but they will be output by using:
Code: Select all
$customer->get('telephone')
$customer->get('email_address')
Re: email address in notification email
Posted: Tue Feb 11, 2025 2:30 pm
by heatherbell
For example
https://github.com/CE-PhoenixCart/Phoen ... hp#L46-L48
Code: Select all
echo "\n" . MODULE_NOTIFICATIONS_CHECKOUT_TEXT_DELIVERY_ADDRESS . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n"
. $customer->make_address_label($order->delivery, 0, '', "\n") . "\n";
changed to:
Code: Select all
echo "\n" . MODULE_NOTIFICATIONS_CHECKOUT_TEXT_DELIVERY_ADDRESS . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n"
. $customer->make_address_label($order->delivery, 0, '', "\n") . "\n"
. $customer->get('email_address') . "\n";
will output the customer's email address below the delivery address
Re: email address in notification email
Posted: Wed Feb 12, 2025 4:37 pm
by martindavinci
Heatherbell,
thank you so much for your solution! I am going to try it out right away.Thanks!