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

#   How to add product description to admin email

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#137618](#137618) by [printco](/forum/user/15621-printco "View printco's Profile")  *[How to add product description to admin email](/forum/27-checkout/864527-how-to-add-product-description-to-admin-email#137618 "I created an item in Hikashop to act as a bundle, so I figured out how to get all of the product description (which contains a list of all of the items in the bundle) to show up in the checkout page...")* was created by *[printco](/forum/user/15621-printco "View printco's Profile")*

I created an item in Hikashop to act as a bundle, so I figured out how to get all of the product description (which contains a list of all of the items in the bundle) to show up in the checkout page by going into views and modifying the checkout -&gt; cart PHP. However, we need that description to also be in the email that goes out to the admin, as that is what we use to enter the order details in our other system. So how do I get the product description to show up in the admin email? Currently I am doing this with an "If statement" so it only does this for this specific item number.

Here's my code I added to the checkout page:
if($row-&gt;product_code == "1290") {
echo $row-&gt;product_description;
}

And this is what I have tried so far in the admin email PHP but haven't gotten to work:
if($item-&gt;order_product_code == "1290") {
echo $item-&gt;order_product_description;
}

Not sure what I am doing wrong. Please help.

Thanks.

-- HikaShop version -- : latest
-- Joomla version -- : latest
-- PHP version -- : 5.3

Last edit: 12 years 10 months ago by [printco](/forum/user/15621-printco "View printco's Profile").

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

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 10 months ago [\#137639](#137639) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add product description to admin email](/forum/27-checkout/864527-how-to-add-product-description-to-admin-email#137639 "I created an item in Hikashop to act as a bundle, so I figured out how to get all of the product description (which contains a list of all of the items in the bundle) to show up in the checkout page...")*

Hi,

There is no order_product_description which exists in the database so you can't do that.
You would need first to load the description of the product: Code:

if($item-&gt;order_product_code == "1290") { $productClass = hikashop_get('class.product'); $productData = $productClass-&gt;get($item-&gt;product_id); echo $productData-&gt;product_description; }

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

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

[](#top)
