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

#   Show categorys that have certain products attached

##

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

Less More

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

11 years 2 months ago [\#211790](#211790) by [kemo](/forum/user/37931-kemo "View kemo's Profile")  *[Show categorys that have certain products attached](/forum/26-product-category-display/878814-show-categorys-that-have-certain-products-attached#211790 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.3  Hi, It sounds easy enough, but I will try to explain what im trying to do.  I have MANY different products that ranges from oil to grease and cleaning. All these products are well categorised. I have also categorised the products into 3 other categories something like: Products for the industry Products for the food industry Chemistry and cleaning  I cant just nest categories under the 3 categories, because many products in the food industry cant also be used in the regularly industry and so on.  The thing I want to do, is to have a way to show the categories that have products attached with for example the categori &quot;Products for the industry&quot;.  I got it to work by showing all the products and not the categories.  I had a idea, that Tags on the products could be my solution, but I think it's only for Joomla search.  Any help is appreciated. /Kim")* was created by *[kemo](/forum/user/37931-kemo "View kemo's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.3

Hi,
It sounds easy enough, but I will try to explain what im trying to do.

I have MANY different products that ranges from oil to grease and cleaning.
All these products are well categorised.
I have also categorised the products into 3 other categories something like:
Products for the industry
Products for the food industry
Chemistry and cleaning

I cant just nest categories under the 3 categories, because many products in the food industry cant also be used in the regularly industry and so on.

The thing I want to do, is to have a way to show the categories that have products attached with for example the categori "Products for the industry".

I got it to work by showing all the products and not the categories.

I had a idea, that Tags on the products could be my solution, but I think it's only for Joomla search.

Any help is appreciated.
/Kim

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg4MTQtc2hvdy1jYXRlZ29yeXMtdGhhdC1oYXZlLWNlcnRhaW4tcHJvZHVjdHMtYXR0YWNoZWQ/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 2 months ago [\#211798](#211798) 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 *[Show categorys that have certain products attached](/forum/26-product-category-display/878814-show-categorys-that-have-certain-products-attached#211798 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.3  Hi, It sounds easy enough, but I will try to explain what im trying to do.  I have MANY different products that ranges from oil to grease and cleaning. All these products are well categorised. I have also categorised the products into 3 other categories something like: Products for the industry Products for the food industry Chemistry and cleaning  I cant just nest categories under the 3 categories, because many products in the food industry cant also be used in the regularly industry and so on.  The thing I want to do, is to have a way to show the categories that have products attached with for example the categori &quot;Products for the industry&quot;.  I got it to work by showing all the products and not the categories.  I had a idea, that Tags on the products could be my solution, but I think it's only for Joomla search.  Any help is appreciated. /Kim")*

Hello Kim,

> The thing I want to do, is to have a way to show the categories that have products attached with for example the categori "Products for the industry".

Then in that case, you should directly :
- Create an "Industry" unpublished category (if you don't want it to be displayed through your category listing
- Add that category the products that you want to be displayed through your product listing
- Use that category through the "" option of your product listing content menu/module via "Hikashop-&gt;Display-&gt;Views-&gt;Content menus/modules".

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

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

Less More

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

11 years 2 months ago [\#211899](#211899) by [kemo](/forum/user/37931-kemo "View kemo's Profile")  Replied by *[kemo](/forum/user/37931-kemo "View kemo's Profile")* on topic *[Show categorys that have certain products attached](/forum/26-product-category-display/878814-show-categorys-that-have-certain-products-attached#211899 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.3  Hi, It sounds easy enough, but I will try to explain what im trying to do.  I have MANY different products that ranges from oil to grease and cleaning. All these products are well categorised. I have also categorised the products into 3 other categories something like: Products for the industry Products for the food industry Chemistry and cleaning  I cant just nest categories under the 3 categories, because many products in the food industry cant also be used in the regularly industry and so on.  The thing I want to do, is to have a way to show the categories that have products attached with for example the categori &quot;Products for the industry&quot;.  I got it to work by showing all the products and not the categories.  I had a idea, that Tags on the products could be my solution, but I think it's only for Joomla search.  Any help is appreciated. /Kim")*

Hi Mohamed
Many thanks for your reply.

I can't seem to follow you, because what you are describing sounds to me just like the standard way of showing a category with products. Or maby im just a bit to slow today.

Category 1 (Some of the products are also assigned Category Industry)
---Category 1.1
---Category 1.2 (Some of the products are also assigned Category Industry)
Category 2 (Some of the products are also assigned Category Industry)
---Category 2.1
---Category 2.2
Category 3 (Some of the products are also assigned Category Industry)
---Category 3.1 (Some of the products are also assigned Category Industry)
---Category 3.2
Category industry

Now. I hope you can see where i'm heading.
I want to display the categories that has products that is assigned to the industry category. And of cause some of the categories also have other products and I dont want them to show up.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg4MTQtc2hvdy1jYXRlZ29yeXMtdGhhdC1oYXZlLWNlcnRhaW4tcHJvZHVjdHMtYXR0YWNoZWQ/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 2 months ago -  11 years 2 months ago [\#211944](#211944) 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 *[Show categorys that have certain products attached](/forum/26-product-category-display/878814-show-categorys-that-have-certain-products-attached#211944 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.3  Hi, It sounds easy enough, but I will try to explain what im trying to do.  I have MANY different products that ranges from oil to grease and cleaning. All these products are well categorised. I have also categorised the products into 3 other categories something like: Products for the industry Products for the food industry Chemistry and cleaning  I cant just nest categories under the 3 categories, because many products in the food industry cant also be used in the regularly industry and so on.  The thing I want to do, is to have a way to show the categories that have products attached with for example the categori &quot;Products for the industry&quot;.  I got it to work by showing all the products and not the categories.  I had a idea, that Tags on the products could be my solution, but I think it's only for Joomla search.  Any help is appreciated. /Kim")*

Hi,
My bad, I though that you wanted to display the **products** which were on the "Industry" category.

There is no option to do what you want, but the solution will be to directly use a category listing and also develop a plugin using the "onBeforeCategoryListingLoad" trigger which will enable to filter the categories regarding if they have products which are on the "Industry" category :

> onBeforeCategoryListingLoad(&amp;$filters)
>
> This function will be triggered by HikaShop the categories are loaded in order to be displayed on categories listings on the front end and back end. The $filters variable will be an array of conditions which will then be combined in order to form the MySQL query which will be used to load the categories. That can enable you to change the way the categories are loaded on your website listings by adding or removing conditions on that query.

[ www.hikashop.com/support/documentation/6...eCategoryListingLoad](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onBeforeCategoryListingLoad)

Note that some development skills will be required.

Last edit: 11 years 2 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

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

11 years 2 months ago [\#212014](#212014) by [kemo](/forum/user/37931-kemo "View kemo's Profile")  Replied by *[kemo](/forum/user/37931-kemo "View kemo's Profile")* on topic *[Show categorys that have certain products attached](/forum/26-product-category-display/878814-show-categorys-that-have-certain-products-attached#212014 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.3  Hi, It sounds easy enough, but I will try to explain what im trying to do.  I have MANY different products that ranges from oil to grease and cleaning. All these products are well categorised. I have also categorised the products into 3 other categories something like: Products for the industry Products for the food industry Chemistry and cleaning  I cant just nest categories under the 3 categories, because many products in the food industry cant also be used in the regularly industry and so on.  The thing I want to do, is to have a way to show the categories that have products attached with for example the categori &quot;Products for the industry&quot;.  I got it to work by showing all the products and not the categories.  I had a idea, that Tags on the products could be my solution, but I think it's only for Joomla search.  Any help is appreciated. /Kim")*

Hi,
Okay thanks. Maybe I can figure something out.

BR Kim

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

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