[Skip to main content](#vessel-content)

#   Email template customisation clarifications

##

- **[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")**
- [![codewarrior's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4710-codewarrior "View codewarrior's Profile") Topic Author
- [ Offline](/forum/user/4710-codewarrior)

Less More

- Posts: 190
- Thank you received: 0
-
-

12 years 6 months ago -  12 years 6 months ago [\#154345](#154345) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  *[Email template customisation clarifications](/forum/35-orders-management/867862-email-template-customisation-clarifications#154345 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 2.5  Hi, I know that templates are in media/com&#95;hikashop/mail/XXXXX.html.php but when I make a change, nothing appears.  When an order is created, customer and admin, are notified with a nice HTML mail.  &#42; I tried to add my site logo with no success  &#42; some messages don't seems to be completed with variables ex: the string HI&#95;CUSTOMER=&quot;Bonjour %s,&quot; generates only Bonjour , without the name Same with order reference  When the order is paid with Paypal, notifications are only with poor text messages.  &#42; Can you help me to always generate HTML mails for all purposes  &#42; Can you tell me where to template and how to display customers informations.  Thanks")* was created by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")*

-- HikaShop version -- : 2.3.0
-- Joomla version -- : 2.5

Hi,
I know that templates are in media/com_hikashop/mail/XXXXX.html.php but when I make a change, nothing appears.

When an order is created, customer and admin, are notified with a nice HTML mail.

1. I tried to add my site logo with no success
2. some messages don't seems to be completed with variables
ex: the string HI\_CUSTOMER="Bonjour %s," generates only Bonjour , without the name
Same with order reference

When the order is paid with Paypal, notifications are only with poor text messages.

1. Can you help me to always generate HTML mails for all purposes
2. Can you tell me where to template and how to display customers informations.

Thanks

Last edit: 12 years 6 months ago by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2Nzg2Mi1lbWFpbC10ZW1wbGF0ZS1jdXN0b21pc2F0aW9uLWNsYXJpZmljYXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 6 months ago [\#154352](#154352) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Email template customisation clarifications](/forum/35-orders-management/867862-email-template-customisation-clarifications#154352 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 2.5  Hi, I know that templates are in media/com&#95;hikashop/mail/XXXXX.html.php but when I make a change, nothing appears.  When an order is created, customer and admin, are notified with a nice HTML mail.  &#42; I tried to add my site logo with no success  &#42; some messages don't seems to be completed with variables ex: the string HI&#95;CUSTOMER=&quot;Bonjour %s,&quot; generates only Bonjour , without the name Same with order reference  When the order is paid with Paypal, notifications are only with poor text messages.  &#42; Can you help me to always generate HTML mails for all purposes  &#42; Can you tell me where to template and how to display customers informations.  Thanks")*

Hi,

Images in an email should be URL, you have to specify the full link (with the domain name).
You can use the tag {VAR:LIVE_SITE} to help you for this part, like we did for the header/footer images in these mails.

Texts are process in the "XXXX.preload.php" file, you will find the code which make the translation for the HI_CUSTOMER and you will see that the $customer-&gt;name or the $order-&gt;billing_address-&gt;address_firstname are used to fill the customer name in that place.

Emails sent by the payment plugin does not have any template for the moment.
We have in our TODO list an improvement for the HikaShop payment plugin system in order to have some generic emails when a payment plugin want to send an email.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2Nzg2Mi1lbWFpbC10ZW1wbGF0ZS1jdXN0b21pc2F0aW9uLWNsYXJpZmljYXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")**
- [![codewarrior's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4710-codewarrior "View codewarrior's Profile") Topic Author
- [ Offline](/forum/user/4710-codewarrior)

Less More

- Posts: 190
- Thank you received: 0
-
-

12 years 6 months ago -  12 years 6 months ago [\#154389](#154389) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  Replied by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")* on topic *[Email template customisation clarifications](/forum/35-orders-management/867862-email-template-customisation-clarifications#154389 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 2.5  Hi, I know that templates are in media/com&#95;hikashop/mail/XXXXX.html.php but when I make a change, nothing appears.  When an order is created, customer and admin, are notified with a nice HTML mail.  &#42; I tried to add my site logo with no success  &#42; some messages don't seems to be completed with variables ex: the string HI&#95;CUSTOMER=&quot;Bonjour %s,&quot; generates only Bonjour , without the name Same with order reference  When the order is paid with Paypal, notifications are only with poor text messages.  &#42; Can you help me to always generate HTML mails for all purposes  &#42; Can you tell me where to template and how to display customers informations.  Thanks")*

Thanks Jerome for your reply.
I was focusing on order_creation_notification.html.php when looking mails sent to Admin...
This one is for customer and I saw order_admin_notification.html.php ... for admin
I modified the order image with my Logo : OK

The problem is now that strings like HI_CUSTOMER are only correct in customer mail, but not in admin mail.
The difference is :
- admin :
'HI_CUSTOMER' =&gt; JText::sprintf('HI_CUSTOMER', @$mail-&gt;to_name),

- customer :
$customer_name = @$customer-&gt;name;
if(empty($customer_name)) $customer_name = @$data-&gt;cart-&gt;billing_address-&gt;address_firstname;
'HI_CUSTOMER' =&gt; JText::sprintf('HI_CUSTOMER', $customer_name),

**Do you think it's an harmonisation needed in Hikasop ?**

OK for payment, but it would be fine to also have a nice email, like for the order !
Is it difficult to implement, as you already have the code ?
When do you think to implement it ?

Regards

Last edit: 12 years 6 months ago by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2Nzg2Mi1lbWFpbC10ZW1wbGF0ZS1jdXN0b21pc2F0aW9uLWNsYXJpZmljYXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 6 months ago [\#156570](#156570) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Email template customisation clarifications](/forum/35-orders-management/867862-email-template-customisation-clarifications#156570 "-- HikaShop version -- : 2.3.0 -- Joomla version -- : 2.5  Hi, I know that templates are in media/com&#95;hikashop/mail/XXXXX.html.php but when I make a change, nothing appears.  When an order is created, customer and admin, are notified with a nice HTML mail.  &#42; I tried to add my site logo with no success  &#42; some messages don't seems to be completed with variables ex: the string HI&#95;CUSTOMER=&quot;Bonjour %s,&quot; generates only Bonjour , without the name Same with order reference  When the order is paid with Paypal, notifications are only with poor text messages.  &#42; Can you help me to always generate HTML mails for all purposes  &#42; Can you tell me where to template and how to display customers informations.  Thanks")*

Hi,

It's normal that the text is different from the emails. One is for the customer, so we set the customer name, the other one is for the admin, so we will not set the customer name. So the code is different.

But if you want to have the the customer name in this email, you can edit it and take the customers details. ![:)](/media/kunena/emoticons/3.png ":)")
You can edit the emails via the menu System &gt; Emails for business edition, or in the folder media/mail of hikashop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2Nzg2Mi1lbWFpbC10ZW1wbGF0ZS1jdXN0b21pc2F0aW9uLWNsYXJpZmljYXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
