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

#   order notification email problem

##

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

Less More

- Posts: 19
- Thank you received: 0
-
-

11 years 2 months ago [\#211841](#211841) by [maike001](/forum/user/31356-maike001 "View maike001's Profile")  *[order notification email problem](/forum/35-orders-management/878824-order-notification-email-problem#211841 "Hi If I wanna add product-category to order notification email. What can I do??")* was created by *[maike001](/forum/user/31356-maike001 "View maike001's Profile")*

Hi
If I wanna add product-category to order notification email.
What can I do??

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 747
-
- [](http://www.inphase.one)
-

11 years 2 months ago [\#211877](#211877) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[order notification email problem](/forum/35-orders-management/878824-order-notification-email-problem#211877 "Hi If I wanna add product-category to order notification email. What can I do??")*

Hi,

This could become difficult because a product could be assigned to not just one but multiple categories.

See this post: [ www.hikashop.com/forum/orders-management...fication.html#199841](http://www.hikashop.com/forum/orders-management/876574-custom-field-in-email-notification.html#199841)
where Jerome says

> About the product categories ; there is no tag for that so the best will be to edit the "preload" part of the email in order to add the value in the array, so you can use it afterwards as a tag.
> Because a product can have several categories, the loading of that information require some special processing, specially to provide just one single value for the tag (which can't handle arrays).

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3ODgyNC1vcmRlci1ub3RpZmljYXRpb24tZW1haWwtcHJvYmxlbT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

11 years 2 months ago [\#211858](#211858) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[order notification email problem](/forum/35-orders-management/878824-order-notification-email-problem#211858 "Hi If I wanna add product-category to order notification email. What can I do??")*

Hi,

It's not easy as the data is not loaded in the emails.
You'll have to edit the emails via the menu System&gt;Emails and in the "preload" area, you'll have to add first a MySQL query to load the category_name of the categories in the hikashop_category based on their category_id that you would load based on the category_id of the entries in the table hikashop_product_category where the product_id value would correspond to the id of the product that you can get in the $product-&gt;product_id variable there. Then, you'll be able to loop through the results of your MySQL query and display the category name after the product name.
If you're a developer it should be quite easy to do.

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

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

[](#top)
