How to add a name in the admin e-mail notification

  • Posts: 308
  • Thank you received: 9
  • Hikamarket Frontedition Hikashop Business
9 months 3 weeks ago #272905

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7

Hi Hikashop,

When a shop owner gets an email with the notification that there is a new order, there is a incorrect preamble.
We miss the name after the word Hello.

Can you tell me what I'm doing wrong? And how I can fix this issue.

I know I can change the Language file, but I saw that it is dynamically filled so there must be something wrong in my configuration I think.

Kind regards,
Lumiga






Kind regards,
Lumiga
Attachments:

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

  • Posts: 61827
  • Thank you received: 8793
  • MODERATOR
9 months 3 weeks ago #272944

Hi,

That's normal. In the HikaShop configuration, there is a setting to enter the "order administrator notification email address". So the system knows the email address where to send that email. But there is no setting to enter the name. So the name is left blank there.

We didn't want to add too many almost useless options so we left it like that.
If you want to change that, you would have to change the email preload to change the CUSTOMER to add the name you want in hard coding. But I don't see the point of changing that since that's for yourself anyway.

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

  • Posts: 308
  • Thank you received: 9
  • Hikamarket Frontedition Hikashop Business
9 months 3 weeks ago #273064

Thanks Nicolas,

Good to know that I don't miss a thing.
It's just perfectionism why I would like this ;-)

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 308
  • Thank you received: 9
  • Hikamarket Frontedition Hikashop Business
4 months 1 week ago #284497

Hi Nicolas,

Can you please help me with the code to get the site owners name into the email preload as you suggested.
I don't know how to do this.

Thanks!


Kind regards,
Lumiga

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

  • Posts: 61827
  • Thank you received: 8793
  • MODERATOR
4 months 1 week ago #284501

Hi,

You can change that line:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', @$mail->to_name),
to for example:
'HI_CUSTOMER' => JText::sprintf('HI_CUSTOMER', 'Sailfin73'),

The following user(s) said Thank You: Sailfin73

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

  • Posts: 308
  • Thank you received: 9
  • Hikamarket Frontedition Hikashop Business
4 months 6 days ago #284606

Thanks Nicolas!


Kind regards,
Lumiga

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

Time to create page: 0.066 seconds
Powered by Kunena Forum