- Posts: 6
- Thank you received: 0
Inserting customer email address in Admin Email
- simoncole67
-
Topic Author
- Offline
Less
More
13 years 2 months ago #117662
by simoncole67
Inserting customer email address in Admin Email was created by simoncole67
I found this code in a previous post on the subject:-
<?php
$class = hikashop_get('class.user');
$user = $class->get($data->cart->order_user_id);
echo $user->user_mail;
?>
and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?
I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add <?php echo nl2br(print_r($data,true)); ?> (found in another post) it lists everything except the customer's email.
<?php
$class = hikashop_get('class.user');
$user = $class->get($data->cart->order_user_id);
echo $user->user_mail;
?>
and inserted it into the Order Administration Notification email, but it returns nothing. Anything else I need to add to make this work?
I am running Hikashop Business 2.1.3 with 'No Registration' configured. All I need to do is echo the customer's email address along with their billing address. If I do a Reply to the email, it addresses it to the customer so has it stored somewhere, but if I add <?php echo nl2br(print_r($data,true)); ?> (found in another post) it lists everything except the customer's email.
Please Log in or Create an account to join the conversation.
13 years 2 months ago #117680
by Xavier
Replied by Xavier on topic Inserting customer email address in Admin Email
Hi,
Thanks to update your HikaShop version, that should correct that bug.
Thanks to update your HikaShop version, that should correct that bug.
Please Log in or Create an account to join the conversation.
- simoncole67
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
13 years 2 months ago #117688
by simoncole67
Replied by simoncole67 on topic Inserting customer email address in Admin Email
Thanks, I have now updated to HikaShop Business 2.2.0, but the email address is still not displaying using the code cut/paste from above. Any ideas?
Please Log in or Create an account to join the conversation.
13 years 2 months ago #117713
by Xavier
Replied by Xavier on topic Inserting customer email address in Admin Email
I think that you had updated the email before the update, so the changes have not been applied (to not loose your modifications).
You just have to remove the customization by clicking on the dustbin in the email listing, and it will work fine.
Then you can put back your modifications.
You just have to remove the customization by clicking on the dustbin in the email listing, and it will work fine.
Then you can put back your modifications.
The following user(s) said Thank You: simoncole67
Please Log in or Create an account to join the conversation.
- simoncole67
-
Topic Author
- Offline
Less
More
- Posts: 6
- Thank you received: 0
13 years 2 months ago #117728
by simoncole67
Replied by simoncole67 on topic Inserting customer email address in Admin Email
Thanks, that has worked a treat.
Please Log in or Create an account to join the conversation.
Time to create page: 0.111 seconds