Inserting customer email address in Admin Email

  • Posts: 6
  • Thank you received: 0
11 years 2 months ago #117662

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #117680

Hi,

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

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

  • Posts: 6
  • Thank you received: 0
11 years 2 months ago #117688

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #117713

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.

  • Posts: 6
  • Thank you received: 0
11 years 2 months ago #117728

Thanks, that has worked a treat.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum