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

#   Notification E-Mail Formatting Bug

##

- **[evolution](/forum/user/8324-evolution "View evolution's Profile")**
- [![evolution's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8324.png)](/forum/user/8324-evolution "View evolution's Profile") Topic Author
- [ Offline](/forum/user/8324-evolution)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 3 months ago [\#59250](#59250) by [evolution](/forum/user/8324-evolution "View evolution's Profile")  *[Notification E-Mail Formatting Bug](/forum/3-bug-report/59250-notification-e-mail-formatting-bug#59250 "I have discovered a formatting bug with the “Order administrator notification” and “Order creation notification” e-mails.  When “Display product code” in “System | Configuration | Display” is set to “Yes”, there are some formatting errors in the email HTML content.  1) The text for the product code heading in the order summary is not bolded whereas all other column headings show in bold.  Change “” to read “”  2) The text for the tax component at the bottom of the order summary is misaligned. 3) The text for the “total with tax” at the bottom of the order summary is misaligned.  These 2 bugs have the same underlying cause and fix:  Find the “colspan=4” statements and change them to “colspan=5”.  That fix works for me because I have “Display product code=Yes”, when “Display product code=No” there is a minor alignment problem with the item amount and the total amount so there probably needs to be an “if ($config-&gt;get('show&#95;code'))” somewhere in there to control the behaviour more precisely.  I tried “colspan=0” because I found some online documentation stating that “0” means “span all columns”, but this did not work for me. I also tried “9” but then I got the same alignment problem that I mentioned with “colspan=5” combined with “Display product code=No”.")* was created by *[evolution](/forum/user/8324-evolution "View evolution's Profile")*

I have discovered a formatting bug with the “Order administrator notification” and “Order creation notification” e-mails.

When “Display product code” in “System &#124; Configuration &#124; Display” is set to “Yes”, there are some formatting errors in the email HTML content.

1) The text for the product code heading in the order summary is not bolded whereas all other column headings show in bold.

Change
**“&lt;td&gt;&lt;?php echo JText::\_('CART\_PRODUCT\_CODE'); ?&gt;&lt;/td&gt;”**
to read
**“&lt;td style="font-weight:bold;"&gt;&lt;?php echo JText::\_('CART\_PRODUCT\_CODE'); ?&gt;&lt;/td&gt;”**

2) The text for the tax component at the bottom of the order summary is misaligned.
3) The text for the “total with tax” at the bottom of the order summary is misaligned.

These 2 bugs have the same underlying cause and fix:

Find the **“colspan=4”** statements and change them to **“colspan=5”**.

That fix works for me because I have “Display product code=Yes”, when “Display product code=No” there is a minor alignment problem with the item amount and the total amount so there probably needs to be an “if ($config-&gt;get('show_code'))” somewhere in there to control the behaviour more precisely.

I tried “colspan=0” because I found some online documentation stating that “0” means “span all columns”, but this did not work for me. I also tried “9” but then I got the same alignment problem that I mentioned with “colspan=5” combined with “Display product code=No”.

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

- **[evolution](/forum/user/8324-evolution "View evolution's Profile")**
- [![evolution's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar8324.png)](/forum/user/8324-evolution "View evolution's Profile") Topic Author
- [ Offline](/forum/user/8324-evolution)

Less More

- Posts: 35
- Thank you received: 0
-
-

14 years 3 months ago [\#59265](#59265) by [evolution](/forum/user/8324-evolution "View evolution's Profile")  Replied by *[evolution](/forum/user/8324-evolution "View evolution's Profile")* on topic *[Re: Notification E-Mail Formatting Bug](/forum/3-bug-report/59250-notification-e-mail-formatting-bug#59265 "I have discovered a formatting bug with the “Order administrator notification” and “Order creation notification” e-mails.  When “Display product code” in “System | Configuration | Display” is set to “Yes”, there are some formatting errors in the email HTML content.  1) The text for the product code heading in the order summary is not bolded whereas all other column headings show in bold.  Change “” to read “”  2) The text for the tax component at the bottom of the order summary is misaligned. 3) The text for the “total with tax” at the bottom of the order summary is misaligned.  These 2 bugs have the same underlying cause and fix:  Find the “colspan=4” statements and change them to “colspan=5”.  That fix works for me because I have “Display product code=Yes”, when “Display product code=No” there is a minor alignment problem with the item amount and the total amount so there probably needs to be an “if ($config-&gt;get('show&#95;code'))” somewhere in there to control the behaviour more precisely.  I tried “colspan=0” because I found some online documentation stating that “0” means “span all columns”, but this did not work for me. I also tried “9” but then I got the same alignment problem that I mentioned with “colspan=5” combined with “Display product code=No”.")*

Here is a fix that I came up with.

Search for $numcols.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTI1MC1ub3RpZmljYXRpb24tZS1tYWlsLWZvcm1hdHRpbmctYnVnP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

14 years 3 months ago [\#59291](#59291) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Notification E-Mail Formatting Bug](/forum/3-bug-report/59250-notification-e-mail-formatting-bug#59291 "I have discovered a formatting bug with the “Order administrator notification” and “Order creation notification” e-mails.  When “Display product code” in “System | Configuration | Display” is set to “Yes”, there are some formatting errors in the email HTML content.  1) The text for the product code heading in the order summary is not bolded whereas all other column headings show in bold.  Change “” to read “”  2) The text for the tax component at the bottom of the order summary is misaligned. 3) The text for the “total with tax” at the bottom of the order summary is misaligned.  These 2 bugs have the same underlying cause and fix:  Find the “colspan=4” statements and change them to “colspan=5”.  That fix works for me because I have “Display product code=Yes”, when “Display product code=No” there is a minor alignment problem with the item amount and the total amount so there probably needs to be an “if ($config-&gt;get('show&#95;code'))” somewhere in there to control the behaviour more precisely.  I tried “colspan=0” because I found some online documentation stating that “0” means “span all columns”, but this did not work for me. I also tried “9” but then I got the same alignment problem that I mentioned with “colspan=5” combined with “Display product code=No”.")*

Thank you.

We changed the code on our end so that the colspan is now dynamic in the emails based on that option and we added the CSS to bold the title.

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

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