- Posts: 17
- Thank you received: 0
Remove the http from sent emails
- hypnotic11us
-
Topic Author
- Offline
Less
More
15 years 6 months ago #10287
by hypnotic11us
Remove the http from sent emails was created by hypnotic11us
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!
Thank you!
Please Log in or Create an account to join the conversation.
15 years 6 months ago #10289
by nicolas
Replied by nicolas on topic Re: Remove the http from sent emails
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.
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.
- hypnotic11us
-
Topic Author
- Offline
Less
More
- Posts: 17
- Thank you received: 0
15 years 6 months ago #10291
by hypnotic11us
Replied by hypnotic11us on topic Re: Remove the http from sent emails
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?
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.
15 years 6 months ago #10292
by nicolas
Replied by nicolas on topic Re: Remove the http from sent emails
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.
- hypnotic11us
-
Topic Author
- Offline
Less
More
- Posts: 17
- Thank you received: 0
15 years 6 months ago #10393
by hypnotic11us
Replied by hypnotic11us on topic Re: Remove the http from sent emails
That's good to know.
I was also wondering, can the mail that announces a new order be sent to more than one email?
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.
15 years 6 months ago #10396
by nicolas
Replied by nicolas on topic Re: Remove the http from sent emails
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.
- hypnotic11us
-
Topic Author
- Offline
Less
More
- Posts: 17
- Thank you received: 0
15 years 6 months ago #10399
by hypnotic11us
Replied by hypnotic11us on topic Re: Remove the http from sent emails
So brilliant, yet so simple 
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 190
- Thank you received: 0
14 years 9 months ago #32328
by codewarrior
Replied by codewarrior on topic Re: Remove the http from sent emails
And with the Essential version, there is no easier way to customize emails presentation ?
Even in PHP files ?
Thanks & regards
Even in PHP files ?
Thanks & regards
Please Log in or Create an account to join the conversation.
14 years 9 months ago #32360
by nicolas
Replied by nicolas on topic Re: Remove the http from sent emails
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.
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.213 seconds