Admin Notification: Include email address of user

  • Posts: 15
  • Thank you received: 1
  • Hikashop Business
6 hours 5 minutes ago #372298

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 6.1.1
-- PHP version -- : 8.3
-- Browser(s) name and version -- : Chrome Version 149.0.7827.54 and Firefox Version 149.0.7827.54
-- Error-message(debug-mod must be tuned on) -- : N/A

I am pleased to announce that I have upgraded Joomla and Hikashop! I also created overrides in the Language file for English.

My next step is to figure out how I can include the user's email address in the admin notification email.This means they can see the quote request but do not have a way to reply to the user. I had this issue in the previous version and can't find a solution for the upgraded version.

I used the https://URL/upgrade as a staging area. Nicholas still has super admin access, but I'm happy to send it again.

Best Regards,
Mary

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

  • Posts: 85760
  • Thank you received: 14064
  • MODERATOR
39 minutes ago #372301

Hello,

Good news: the order admin notification already gives you the customer's email, so no custom development is needed. It is there in two ways.

In the email body: the customer's email is output by the variable

{VAR:CUSTOMER_DETAILS}
, which is shown on the "Customer:" line of the default template. If your customized version of that email no longer shows it, just add it back where you want it. You can also use the generic tag
{VAR:customer.user_email}
, which prints the customer's email wherever you place it in the body (the same dot notation works for other customer fields too, for example
{VAR:customer.name}
). You edit the email under System > Emails, the "Order admin notification" email (HTML view).

As the Reply-To: HikaShop already sets the customer's address as the Reply-To of that admin notification, so you can simply click Reply in your mail client and your answer goes straight to the customer.

If the Reply-To does not seem to work, make sure you are on the latest 6.5.0 build. The Reply-To handling was recently hardened for Joomla 6 and PHP 8.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum