Skip to main content

Inserting customer email address in Admin Email

More
13 years 2 months ago #117662 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.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #117680 by Xavier
Hi,

Thanks to update your HikaShop version, that should correct that bug.

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #117688 by simoncole67
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.

More
13 years 2 months ago #117713 by Xavier
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.
The following user(s) said Thank You: simoncole67

Please Log in or Create an account to join the conversation.

More
13 years 2 months ago #117728 by simoncole67
Thanks, that has worked a treat.

Please Log in or Create an account to join the conversation.

Time to create page: 0.097 seconds
Powered by Kunena Forum