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

#   Access category of product in users email

##

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

Less More

- Posts: 45
- Thank you received: 0
-
-

15 years 3 weeks ago -  15 years 3 weeks ago [\#26582](#26582) by [k8fisher](/forum/user/3652-k8fisher "View k8fisher's Profile")  *[Access category of product in users email](/forum/4-how-to/26582-access-category-of-product-in-users-email#26582 "Hi, Im seeing plenty of questions about fields but none mentioning how to pull through the category a product belongs to.  How would I reference the category of the products purchased?  I tried the tip from Nicholas re typing (below)in an email but it just doesnt seem to give access to the category...    Is there anyway to get to the category of a product?  Any thoughts very much welcome")* was created by *[k8fisher](/forum/user/3652-k8fisher "View k8fisher's Profile")*

Hi, Im seeing plenty of questions about fields but none mentioning how to pull through the category a product belongs to.

How would I reference the category of the products purchased?

I tried the tip from Nicholas re typing (below)in an email but it just doesnt seem to give access to the category...

&lt;?php echo nl2br(print_r($data,true)); ?&gt;

Is there anyway to get to the category of a product?

Any thoughts very much welcome

Last edit: 15 years 3 weeks ago by [k8fisher](/forum/user/3652-k8fisher "View k8fisher's Profile"). Reason: realised what I really need is the ability to access the category of the product not a custom variable

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

15 years 3 weeks ago [\#26594](#26594) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access category of product in users email](/forum/4-how-to/26582-access-category-of-product-in-users-email#26594 "Hi, Im seeing plenty of questions about fields but none mentioning how to pull through the category a product belongs to.  How would I reference the category of the products purchased?  I tried the tip from Nicholas re typing (below)in an email but it just doesnt seem to give access to the category...    Is there anyway to get to the category of a product?  Any thoughts very much welcome")*

There is indeed no easy access to the categories of a product since the categories are not loaded for the email.
That means that you first need to make a query to the database to load the categories of each product before being able to display them. That will require PHP knowledge to do that.

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

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

Less More

- Posts: 45
- Thank you received: 0
-
-

15 years 3 weeks ago [\#26600](#26600) by [k8fisher](/forum/user/3652-k8fisher "View k8fisher's Profile")  Replied by *[k8fisher](/forum/user/3652-k8fisher "View k8fisher's Profile")* on topic *[Re: Access category of product in users email](/forum/4-how-to/26582-access-category-of-product-in-users-email#26600 "Hi, Im seeing plenty of questions about fields but none mentioning how to pull through the category a product belongs to.  How would I reference the category of the products purchased?  I tried the tip from Nicholas re typing (below)in an email but it just doesnt seem to give access to the category...    Is there anyway to get to the category of a product?  Any thoughts very much welcome")*

Thanks for the speedy response, I guess theres a limit to the amount of things you can pull in when creating the email. I just thought I would check in case I was missing something obvious.

Much appreciated

Kate

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

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

[](#top)
