How to display specific customer details in emails?

  • Posts: 19
  • Thank you received: 0
7 years 11 months ago #257218

Hello,

I want to display the following specific details in the "Order administrator notification" email:-
- Customer Name
- Customer Username
- Customer Email Address

Please note that these are customer details, not anything related to either billing or shipping addresses.

I've browsed the entire documentation and forum without success,
Your prompt help is very much appreciated,
Kind regards.

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

  • Posts: 12953
  • Thank you received: 1778
7 years 11 months ago #257245

Hello,

The solution will be to directly edit the code of the "Order administrator notification" email via "Hikashop->System->Emails" and use these variables to display it through the HTML version of your email :

{VAR:user.name}
{VAR:user.user_email}
{VAR:user.username}


Best regards,
Mohamed Thelji.

The following user(s) said Thank You: mhdlabs

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

  • Posts: 19
  • Thank you received: 0
7 years 11 months ago #257431

Many thanks for the great help, Mohamed!

What about custom fields, how can I make a specific custom field appear in a notification email body or subject line?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 11 months ago #257451

Hi,

It depends. How did you configure your custom field ? Could you provide a screenshot of its settings ?

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

  • Posts: 26
  • Thank you received: 1
7 years 8 months ago #263666

Hi Mohamed,

It does not work when I add these variables into the "Market: Order status notification" template. Do i need to use different veriables for HikaMarket??

{VAR:user.name}
{VAR:user.user_email}
{VAR:user.username}


Regards

Last edit: 7 years 8 months ago by lyran.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 8 months ago #263669

Hi,

For your HikaMarket question ; please use the HikaMarket section of the forum.

In HikaMarket order status notification mail, "user" does not have a clear meaning.
So there is the variable "customer" which designate the customer object.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum