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.