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

#   Customer Order Email - Add related products

##

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

Less More

- Posts: 100
- Thank you received: 1
-
-

10 years 7 months ago [\#234732](#234732) by [reders](/forum/user/8228-reders "View reders's Profile")  *[Customer Order Email - Add related products](/forum/31-development/883460-customer-order-email-add-related-products#234732 "-- HikaShop version -- : 2.6.1  Hi,  I am wondering if it would be possible, with custom development, to be able to add related products to the bottom of the Order creation notification email and/or the Order status notification. Using the related products data assigend to the product(s) in the order.  If you think this would be possible, could you point me in the right direction?  Thanks Alex")* was created by *[reders](/forum/user/8228-reders "View reders's Profile")*

-- HikaShop version -- : 2.6.1

Hi,

I am wondering if it would be possible, with custom development, to be able to add related products to the bottom of the Order creation notification email and/or the Order status notification. Using the related products data assigend to the product(s) in the order.

If you think this would be possible, could you point me in the right direction?

Thanks
Alex

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

10 years 7 months ago [\#234748](#234748) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customer Order Email - Add related products](/forum/31-development/883460-customer-order-email-add-related-products#234748 "-- HikaShop version -- : 2.6.1  Hi,  I am wondering if it would be possible, with custom development, to be able to add related products to the bottom of the Order creation notification email and/or the Order status notification. Using the related products data assigend to the product(s) in the order.  If you think this would be possible, could you point me in the right direction?  Thanks Alex")*

Hi,

It sure is possible.
You'll have to edit the emails via the menu System&gt;Emails and add your custom code in the HTML version.
You'll want to loop through the products in $data-&gt;cart-&gt;products and for each one, get the product_id of the object, do a MySQL on the hikashop_related table to get the product_id of the related products of the products of the order, and then load their data from the table hikashop_product with another query, etc.

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

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