Remove the http from sent emails

  • Posts: 17
  • Thank you received: 0
13 years 10 months ago #10287

Hello! Is there a way to remove the http:// from emails sent to customers? Some examples of this occurrence are: when a person registers and gets the confirmation mail, in the subject it welcomes him on my site ( www.drverde.ro ), but trying to create a brand from this site I would like to only show www.drverde.ro . The same thing happens on emails sent to customers after making an order. Can this be done?
Thank you!

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
13 years 10 months ago #10289

With all the versions of hikashop, you can modify all the text that is used by going in the config under the tab languages and editing your language file. So you can override the text string:
THANK_YOU_FOR_REGISTERING="Thank you for registering at %s."

and put:
THANK_YOU_FOR_REGISTERING="Thank you for registering at www.drverde.ro "

It's the same for the order notification email.

With the Business edition of HikaShop, you can customize the emails via the menu System->Emails.
There you could edit the user account email and change the line:
echo JText::sprintf('THANK_YOU_FOR_REGISTERING',HIKASHOP_LIVE);

to:
echo JText::sprintf('THANK_YOU_FOR_REGISTERING',preg_replace('#https?://#','',HIKASHOP_LIVE));

That would avoid having to change the translation strings when changing the URL of your website since it would still be generated automatically.

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

  • Posts: 17
  • Thank you received: 0
13 years 10 months ago #10291

Thank you!
I currently have the free version of HikaShop. If I would switch to the commercial one, would I loose everything I have done so far?

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
13 years 10 months ago #10292

You can switch without any issue. All your data and configuration will be kept.

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

  • Posts: 17
  • Thank you received: 0
13 years 10 months ago #10393

That's good to know.
I was also wondering, can the mail that announces a new order be sent to more than one email?

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
13 years 10 months ago #10396

In the option "Order creation notifications email address" of the config under the tab mail, you can just put several email addresses separated by a comma.

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

  • Posts: 17
  • Thank you received: 0
13 years 10 months ago #10399

So brilliant, yet so simple :)
Thank you!

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

  • Posts: 190
  • Thank you received: 0
13 years 1 month ago #32328

And with the Essential version, there is no easier way to customize emails presentation ?
Even in PHP files ?

Thanks & regards

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

  • Posts: 83103
  • Thank you received: 13413
  • MODERATOR
13 years 1 month ago #32360

the files are available in the folder media/com_hikashop/mail
but please note that the emails will be updated when you update HikaShop so you will have to backup the modifications and reapply them, unlike when you edit the emails via the interface.

The following user(s) said Thank You: amyo

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

Time to create page: 0.076 seconds
Powered by Kunena Forum