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

#   Adding parent product name to order emails

##

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

11 years 4 months ago [\#207682](#207682) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  *[Adding parent product name to order emails](/forum/27-checkout/878033-adding-parent-product-name-to-order-emails#207682 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  The actual physical products in my shop are all variants, throughout the shop they have an sku but use the parent product name, I have done this with template over rides.  I now need the parent product name to appear on emails in place of the variant product name.  Could you talk me through how I would find and add the parent product name to the order emails please? I gather I need to generate a variable in the Preload section of the email but I'm not sure of the actual code I would need to do that.  Many thanks,  Ian")* was created by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1

The actual physical products in my shop are all variants, throughout the shop they have an sku but use the parent product name, I have done this with template over rides.

I now need the parent product name to appear on emails in place of the variant product name.

Could you talk me through how I would find and add the parent product name to the order emails please? I gather I need to generate a variable in the Preload section of the email but I'm not sure of the actual code I would need to do that.

Many thanks,

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

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

11 years 4 months ago [\#207732](#207732) 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 *[Adding parent product name to order emails](/forum/27-checkout/878033-adding-parent-product-name-to-order-emails#207732 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1  The actual physical products in my shop are all variants, throughout the shop they have an sku but use the parent product name, I have done this with template over rides.  I now need the parent product name to appear on emails in place of the variant product name.  Could you talk me through how I would find and add the parent product name to the order emails please? I gather I need to generate a variable in the Preload section of the email but I'm not sure of the actual code I would need to do that.  Many thanks,  Ian")*

Hello,
You'll just have to load the product name of the product which have the ID : $product-&gt;product_parent_id
just after that line through your email preload file : Code:

foreach($data-&gt;cart-&gt;products as $item) { if($group &amp;&amp; $item-&gt;order_product_option_parent_id) continue; $product = @$productClass-&gt;all_products[$item-&gt;product_id];

The following user(s) said Thank You: [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")

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

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