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

#   How to show child category image

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

15 years 10 months ago [\#4408](#4408) by [Ell](/forum/user/588-ell "View Ell's Profile")  *[How to show child category image](/forum/4-how-to/4408-how-to-show-child-category-image#4408 "Hi.  I'd like to know if there is a way to show child category image in the category list. As is, the category list only has the option to show the top category image, but there is no such option for the child categories. The child categories are in ul list format and seem to only come out as text.  Playing around with listing&#95;div, I hoped that there might be file path information in $child-&gt;row-&gt;file&#95;path, to no luck. If there are no other way, I can get the file path info by calling the DB using $child-&gt;category&#95;id, but I was hoping that the information might already exist. I'd appreciate it if you can clear that up.  Thanks!")* was created by *[Ell](/forum/user/588-ell "View Ell's Profile")*

Hi.

I'd like to know if there is a way to show child category image in the category list.
As is, the category list only has the option to show the top category image, but there is no such option for the child categories.
The child categories are in ul list format and seem to only come out as text.

Playing around with listing_div, I hoped that there might be file path information in $child-&gt;row-&gt;file_path, to no luck.
If there are no other way, I can get the file path info by calling the DB using $child-&gt;category_id, but I was hoping that the information might already exist.
I'd appreciate it if you can clear that up.

Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MDgtaG93LXRvLXNob3ctY2hpbGQtY2F0ZWdvcnktaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 86323
- Thank you received: 14282
-
-

15 years 10 months ago [\#4409](#4409) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How to show child category image](/forum/4-how-to/4408-how-to-show-child-category-image#4409 "Hi.  I'd like to know if there is a way to show child category image in the category list. As is, the category list only has the option to show the top category image, but there is no such option for the child categories. The child categories are in ul list format and seem to only come out as text.  Playing around with listing&#95;div, I hoped that there might be file path information in $child-&gt;row-&gt;file&#95;path, to no luck. If there are no other way, I can get the file path info by calling the DB using $child-&gt;category&#95;id, but I was hoping that the information might already exist. I'd appreciate it if you can clear that up.  Thanks!")*

Hi,

That's indeed the case. The image information isn't loaded for child categories in the categories listing. So you will have to write a small SQL query to retrieve it and then use the data like we do for the main category to display the image.
The query should be like this:
SELECT * FROM jos_hikashop_file WHERE file_ref_id='CATEGORY_ID' AND file_type='category';
where you need to replace the CATEGORY_ID with the actual id of the category.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MDgtaG93LXRvLXNob3ctY2hpbGQtY2F0ZWdvcnktaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 5
- Thank you received: 0
-
-

15 years 10 months ago [\#4413](#4413) by [Ell](/forum/user/588-ell "View Ell's Profile")  Replied by *[Ell](/forum/user/588-ell "View Ell's Profile")* on topic *[Re: How to show child category image](/forum/4-how-to/4408-how-to-show-child-category-image#4413 "Hi.  I'd like to know if there is a way to show child category image in the category list. As is, the category list only has the option to show the top category image, but there is no such option for the child categories. The child categories are in ul list format and seem to only come out as text.  Playing around with listing&#95;div, I hoped that there might be file path information in $child-&gt;row-&gt;file&#95;path, to no luck. If there are no other way, I can get the file path info by calling the DB using $child-&gt;category&#95;id, but I was hoping that the information might already exist. I'd appreciate it if you can clear that up.  Thanks!")*

Thank you for the quick response!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ0MDgtaG93LXRvLXNob3ctY2hpbGQtY2F0ZWdvcnktaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.092 seconds

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