Hi,
Yes, it's not possible to see the order if the user did a guest checkout, for security reasons. The link should be removed from there.
Change the code:
<div class="hikashop_online" style="font-family:Arial, Helvetica,sans-serif;font-size:11px;line-height:18px;color:#6a5c6b;text-decoration:none;margin:10px;text-align:center;">
<a style="cursor:pointer;color:#2d9cbb;text-decoration:none;border:none;" href="{VAR:URL}">
<span class="hikashop_online" style="color:#6a5c6b;text-decoration:none;font-size:11px;margin-top:10px;margin-bottom:10px;text-align:center;">
{TXT:MAIL_HEADER}
</span>
</a>
</div>
to:
<!--{IF:USER_ACCOUNT}-->
<div class="hikashop_online" style="font-family:Arial, Helvetica,sans-serif;font-size:11px;line-height:18px;color:#6a5c6b;text-decoration:none;margin:10px;text-align:center;">
<a style="cursor:pointer;color:#2d9cbb;text-decoration:none;border:none;" href="{VAR:URL}">
<span class="hikashop_online" style="color:#6a5c6b;text-decoration:none;font-size:11px;margin-top:10px;margin-bottom:10px;text-align:center;">
{TXT:MAIL_HEADER}
</span>
</a>
</div>
<!--{ENDIF:USER_ACCOUNT}-->
in the files media/com_hikashop/mail/order_creation_notification.html.php , media/com_hikashop/mail/order_notification.html.php and media/com_hikashop/mail/order_status_notification.html.php
and add the line:
'USER_ACCOUNT' => (bool)@$customer->user_cms_id,
after the line:
'MAIL_HEADER' => JText::_('HIKASHOP_MAIL_HEADER'),
in the files media/com_hikashop/mail/order_creation_notification.preload.php , media/com_hikashop/mail/order_notification.preload.php and media/com_hikashop/mail/order_status_notification.preload.php and that will remove the link for guests