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

#   Layout Problem of Customized Email Template

##

- **[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")**
- [![FORIDA&#95;LTD's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile") Topic Author
- [ Offline](/forum/user/54676-forida-ltd)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago -  8 years 4 months ago [\#295056](#295056) by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")  *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295056 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")* was created by *[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")*

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3,7,2
-- PHP version -- : 5.6.31

Hi There,

I would like to have different email template for each order status, and i followed the instructions in the following post:
[ www.hikashop.com/support/forum/orders-ma...or-order-status.html](https://www.hikashop.com/support/forum/orders-management/886337-different-email-templates-for-order-status.html)

However, I found that layout of the customized email template shown in "System &gt; Emails &gt; Select template &gt; Preview" (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).

Attached also please find the customized code of the email template (order_status_notification.confirmed.html.php.zip) for your reference.

Please advise.

Thanks a lot.

Last edit: 8 years 4 months ago by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile").

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

- **[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")**
- [![FORIDA&#95;LTD's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile") Topic Author
- [ Offline](/forum/user/54676-forida-ltd)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago [\#295059](#295059) by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")  Replied by *[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")* on topic *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295059 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")*

Also, I would like to know if I can display a custom field at frontend "Customer orders" page?

Thanks.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 4 months ago [\#295060](#295060) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295060 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")*

Hi,

The HTML of your customized version is not valid.
For example, you have: Code:

&lt;table style="float: left !important; text-align: left !importannt;"&gt; &lt;table class="w600" border="0" cellspacing="0" cellpadding="0" width="600" style="margin:0px;font-family: Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;float: left !important; text-align: left !importannt;"&gt;

So two table tags, one inside the other.
That's not valid HTML.
Another example is this: Code:

&lt;strong&gt;Thank you for choosing to shop at Astore&lt;/strong&gt; &lt;br/&gt; Astore – the Autodesk and BIM software online store operated by Forida Limited&lt;br/&gt;&lt;br/&gt; &lt;/table&gt; &lt;/p&gt; &lt;/div&gt;

You have a closing table and a closing p tag without thei opening tag counterparts before.
If your HTML is not valid it will probably break the layout, like it does in your screenshot.
Note that, between a browser displaying the HTML of a web page, and an email client displaying the HTML of an email, they don't interpret the HTML the same way, even more so when the HTML is invalid. So it's probably why you don't get the same result.

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

- **[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")**
- [![FORIDA&#95;LTD's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile") Topic Author
- [ Offline](/forum/user/54676-forida-ltd)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago [\#295117](#295117) by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")  Replied by *[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")* on topic *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295117 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")*

Hi Nicolas,

Thanks for the advice. i will try again.

Also, I would like to know if I can display a custom field at frontend "Customer orders" page?

Thanks.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 4 months ago [\#295130](#295130) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295130 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")*

Hi,

There is no option for that. But with some view customization it should be possible yes.
If you want to know how you can find the view file you need to customize and where to customize it, you can read this tutorial:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

The following user(s) said Thank You: [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")

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

- **[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")**
- [![FORIDA&#95;LTD's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile") Topic Author
- [ Offline](/forum/user/54676-forida-ltd)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago -  8 years 4 months ago [\#295309](#295309) by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")  Replied by *[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")* on topic *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295309 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")*

Hi Nicolas,

I fixed the layout problem. But there is another problem. when i try to create a new email template for "cancelled" status, the variables used in the code cannot be displayed correctly.
For example, i used {TXT:HI_CUSTOMER}, it was displayed as "Hi %s" instead of cusotmer's name in email. Also, no product information was shown in email.

Attached please see the html code and screen for your reference.
Please advise if i missed anything.

Thanks.

Last edit: 8 years 4 months ago by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile").

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

- **[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")**
- [![FORIDA&#95;LTD's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile") Topic Author
- [ Offline](/forum/user/54676-forida-ltd)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago [\#295311](#295311) by [FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")  Replied by *[FORIDA\_LTD](/forum/user/54676-forida-ltd "View FORIDA&#95;LTD's Profile")* on topic *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295311 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")*

Hi Nicolas,

I fixed the issue by adding the preload.php for the new template.

Thanks.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 4 months ago [\#295316](#295316) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Layout Problem of Customized Email Template](/forum/35-orders-management/895203-layout-problem-of-customized-email-template#295316 "-- HikaShop version -- : 3.4.0 -- Joomla version -- : 3,7,2 -- PHP version -- : 5.6.31  Hi There,  I would like to have different email template for each order status, and i followed the instructions in the following post:   www.hikashop.com/support/forum/orders-ma...or-order-status.html  However, I found that layout of the customized email template shown in &quot;System &gt; Emails &gt; Select template &gt; Preview&quot; (see attached email-preview-in-Email-template.JPG) and the layout shown in received email (see attached layout-shown-in-Received-Email.png) was different. Also, some contents in email were not displayed properly (highlighted in RED in attached layout-shown-in-Received-Email.png).  Attached also please find the customized code of the email template (order&#95;status&#95;notification.confirmed.html.php.zip) for your reference.  Please advise.  Thanks a lot.")*

Hi,

Thank you for your feedback !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5NTIwMy1sYXlvdXQtcHJvYmxlbS1vZi1jdXN0b21pemVkLWVtYWlsLXRlbXBsYXRlP3RtcGw9bWFya2Rvd24=) 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.065 seconds

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