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.
email address in notification email
- martindavinci
- Member
- Posts: 38
- Joined: Mon Mar 08, 2021 8:33 am
- Phoenix Version: 1.1.0.5
- Has thanked: 2 times
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: email address in notification email
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')-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: email address in notification email
For example https://github.com/CE-PhoenixCart/Phoen ... hp#L46-L48
changed to:
will output the customer's email address below the delivery address
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";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";- martindavinci
- Member
- Posts: 38
- Joined: Mon Mar 08, 2021 8:33 am
- Phoenix Version: 1.1.0.5
- Has thanked: 2 times
Re: email address in notification email
Heatherbell,
thank you so much for your solution! I am going to try it out right away.Thanks!
thank you so much for your solution! I am going to try it out right away.Thanks!