Email Notifications - Where Can I Edit Them?

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 11 months ago #78596

Where are the text for the email notifications? Since I won't be actually buying any product I won't be able to know what's in the email so I may need to edit them.

I went to System > Emails but all I see is code...

Thanks!!

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #78602

Hi,

Emails contains some HTML and PHP code but. You can edit them in order to change the look and the design of your emails.
If you just want to change text, you can use translation override.

www.hikashop.com/en/download/languages.html#modify
www.hikashop.com/en/support/documentation/faq.html#translation

Translations would be easier to modify than the html code of the emails.

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.

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 11 months ago #78761

I understand where to go and change the translation, the issue I am having is I don't know where to find the text for each or a specific email or which text is related to each email. Unless I'm missing something this seems a bit confusing :( For example, I would like to edit the emails below:
- Order administrator notification
- Order status notification
- Order notification
- User account
- Order cancel
- Wait list notification

Do you have a sample of the emails in ENGLISH so I know what they would say when the customer receive them? Or are they listed somewhere in the documentation - I looked but I did not see any.

Thanks!!

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

  • Posts: 2334
  • Thank you received: 403
11 years 11 months ago #78789

Hi there,

Since you have a business edition of Hikashop, you can go to System>Emails to see a listing of the mail you just named.
Click on the name of one of these mail and you'll be able to see stuff like:

echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?>

The text in capital letters is the text which will be translate. You can found it in the language file as my colleague says above.
Just change this translation to change the content of the mail.
Be careful to keep the %s, this character will be replaced by the argument given in the sprintf() function :)

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 11 months ago #78810

Thank you this helped. However, using the example below, how do I know what goes here "%s" ?

ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE="We are pleased to confirm the creation of your order No. %s at %s on the %s at %s"

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

  • Posts: 2334
  • Thank you received: 403
11 years 11 months ago #78811

Hi,

As I said, the %s are the argument. Just replace each %s by the argument of the sprintf function. In this case:
"We are pleased to confirm the creation of your order No. $url (order number) at HIKASHOP_LIVE (website url) on the hikashop_getDate(time(),'%d %B %Y') (which is the date) at hikashop_getDate(time(),'%H:%M')) (which is the time)".
To know more, just look at the email send and you'll understand what are the element replacing the %s :)

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 11 months ago #78814

I'm not a programmer so that's part of why it's not clear at first for me but... I'll sort my way through I guess.

To know more, just look at the email send and you'll understand what are the element replacing the %s

This is what I mentioned in my first email... I'm not actually making a purchase on the site so I won't know what is said in ALL the emails. This is why I'm trying to figure out what will appear in the emails when customers get them.

I still think that the actual text for the emails sent should be listed somewhere. I think that would really help.

Thanks anyway.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #78885

Hi,

Because the email content could change, could be edit by users, it is difficult to have a list.
If you open the content of an email, you would find several "JText", it could be "JText::_()" or "JText::sprintf()".
The first parameter is the translation key.
You could find all of theses translations keys in the language file. Sometimes there is some "%s" like eliot explains.

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.

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 10 months ago #84179

May I make a suggestion for the wishlist.

I think it's a bit cumbersome having to go back and forth to the language file to figure out what the translation key means.

So under the tab "Sender Information" you have a HTML Version and you have a "Text version". I think it would be nice to add another section below that with the actual text that will be in the email. I think it would make it a lot easier to edit.

Please consider this. Thanks!!

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #84183

Hi,

Your request has been added in the TODO list.

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.

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
11 years 10 months ago #84198

Thank you!! Thank you!! Thank you!! :)

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

Time to create page: 0.079 seconds
Powered by Kunena Forum