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

#   Printout related product in Email statu

##

- **[Cattelan](/forum/user/20691-cattelan "View Cattelan's Profile")**
- [![Cattelan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/quiet.jpg)](/forum/user/20691-cattelan "View Cattelan's Profile") Topic Author
- [ Offline](/forum/user/20691-cattelan)

Less More

- Posts: 155
- Thank you received: 4
-
-

8 years 10 months ago -  8 years 10 months ago [\#285193](#285193) by [Cattelan](/forum/user/20691-cattelan "View Cattelan's Profile")  *[Printout related product in Email statu](/forum/35-orders-management/893314-printout-related-product-in-email-statu#285193 "-- HikaShop version -- : 3.2.2  Hallo.  I want to show related products of the ordered products in an email which i send when order is arrived to customer. This email is a notification where i ask the customer a review of his experience with us and i would like to show some related products of the ordered ones.  i already copied the  file and modified it to my needs. i would like to have this:  filled up with related products. Do i have to modify the preload file to get the information? If yes could you give me a notice which part i have to copy/modify ?  Thanks for you reply")* was created by *[Cattelan](/forum/user/20691-cattelan "View Cattelan's Profile")*

-- HikaShop version -- : 3.2.2

Hallo.

I want to show related products of the ordered products in an email which i send when order is arrived to customer.
This email is a notification where i ask the customer a review of his experience with us and i would like to show some related products of the ordered ones.

i already copied the

> ..../media/com\_hikashop/mail/order\_status\_notification.html.php

file and modified it to my needs.
i would like to have this: Code:

tr&gt; &lt;td style="font-family: Century Gothic, Arial, Helvetica, sans-serif; border-bottom:1px solid #ddd;padding-bottom:3px;"&gt; {LINEVAR:PRODUCT_IMG} {LINEVAR:PRODUCT_NAME}&lt;!--{IF:ORDER_PRODUCT_CODE}--&gt; {LINEVAR:PRODUCT_CODE}&lt;!--{ENDIF:ORDER_PRODUCT_CODE}--&gt; {LINEVAR:PRODUCT_DOWNLOAD} &lt;/td&gt; &lt;td style="font-family: Century Gothic, Arial, Helvetica, sans-serif; border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;{LINEVAR:PRODUCT_PRICE}&lt;/td&gt;

filled up with related products.
Do i have to modify the preload file to get the information? If yes could you give me a notice which part i have to copy/modify ?

Thanks for you reply

Last edit: 8 years 10 months ago by [Cattelan](/forum/user/20691-cattelan "View Cattelan's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MzMxNC1wcmludG91dC1yZWxhdGVkLXByb2R1Y3QtaW4tZW1haWwtc3RhdHU/dG1wbD1tYXJrZG93bg==) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

8 years 10 months ago [\#285196](#285196) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Printout related product in Email statu](/forum/35-orders-management/893314-printout-related-product-in-email-statu#285196 "-- HikaShop version -- : 3.2.2  Hallo.  I want to show related products of the ordered products in an email which i send when order is arrived to customer. This email is a notification where i ask the customer a review of his experience with us and i would like to show some related products of the ordered ones.  i already copied the  file and modified it to my needs. i would like to have this:  filled up with related products. Do i have to modify the preload file to get the information? If yes could you give me a notice which part i have to copy/modify ?  Thanks for you reply")*

Hi,

You will have to modify the preload yes.
The HTML version is only to arrange the data with the HTML tags.
But there are no tags to display the related products of the products in the order.
So you'll have to edit the preload to add such tag and load the data of the related products in them.
You'll basically have to use $data-&gt;cart-&gt;products to get the products and then run some MySQL queries to get their related products and their data. And then add that in the $vars array with the tag you want.

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

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