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

#   Empty page for empty categories

##

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 11 months ago [\#183690](#183690) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#183690 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Hi,

Where have you done the edition ? In the "product / listing" view ?
If it is, so the message should not be displayed on the product page unless you have a module present under the product content and this module don't have products to display. So please check your module settings.

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

11 years 11 months ago [\#183988](#183988) by [nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")  Replied by *[nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#183988 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Hi Xavier,

Yes the addition is in the product/product view listing. I have done a bit more checking and I have related products set to show at the bottom of the products page. If the product does have a related product then all is ok and it shows the module with items in it, but if the product does not have any related products it shows the There are no products in this catagory text but is missing all of the title etc for the module. the store is currently not online but I can give you a login to show what I mean if that would help.

Many thanks

Martyn

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

11 years 10 months ago [\#185070](#185070) by [nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")  Replied by *[nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#185070 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Any help with this would be appreciated as it is now delaying me putting the site online. I have checked and what appears to be the issue is that the code in the thread above overrides everything which because I have categories with no products in but do have subcategories the message shows (due to it trying to show the associated product listing for category listing menu) but I only need it to show when you get to the lowest level category and it still doesn't have any parts in.

For Example currently I see the message on all the levels

1. Engines
2. Gardner
3. Filter

I actually would only need this to work on the level 3. filters (is there a way to make the associated product listing for category listing menu only work on the lowest category level

> nippyzap wrote: Hi Xavier,
>
> Yes the addition is in the product/product view listing. I have done a bit more checking and I have related products set to show at the bottom of the products page. If the product does have a related product then all is ok and it shows the module with items in it, but if the product does not have any related products it shows the There are no products in this catagory text but is missing all of the title etc for the module. the store is currently not online but I can give you a login to show what I mean if that would help.
>
> Many thanks
>
> Martyn

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

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

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 8 months ago [\#196072](#196072) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196072 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Dear Sir
I implemented this as well, however the same message appeases on product page as well as on category listing page
Please advice how to show this message only on category page where no products on it
thanks

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#196100](#196100) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196100 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Hi,

Do you have edited the view "product / listing" as explained in this post ?
[ www.hikashop.com/forum/4-how-to/55625-em...?limitstart=0#170598](http://www.hikashop.com/forum/4-how-to/55625-empty-page-for-empty-categories.html?limitstart=0#170598)

If it is, you should not have message displayed on the product page as this view is not called in the product page.

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

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

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 8 months ago [\#196192](#196192) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196192 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Dear Sir
yes I did as per the thread and it shows the message in the empty category page, however it shows it as well in category listing (brands) and on product page

please see the following product page

Part of the message is hidden for the guests. Please log in or register to see it.

and the following listing page (brands)

Part of the message is hidden for the guests. Please log in or register to see it.

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

Less More

- Posts: 86587
- Thank you received: 14325
-
-

11 years 8 months ago [\#196218](#196218) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196218 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Hi,

Can you provide screenshots of the modification of the code you did so that we can see what you did ?

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

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

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 8 months ago [\#196247](#196247) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196247 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

hi
attached the file listing.php

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago -  11 years 8 months ago [\#196255](#196255) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196255 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Hi,

Please try with that file instead:
*This attachment is hidden for guests.
Please log in or register to see it.*

It include more conditions in the if/else to avoid this kind of situation.
If that don't do the job, please give us a backend access.

Last edit: 11 years 8 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 7 months ago [\#196468](#196468) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196468 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

hi
it still show the message in product page as well as in product listing modules which is empty like recently views module

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

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

Less More

- Posts: 72
- Thank you received: 0
-
-

11 years 7 months ago -  11 years 7 months ago [\#196469](#196469) by [mymall](/forum/user/36279-mymall "View mymall's Profile")  Replied by *[mymall](/forum/user/36279-mymall "View mymall's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196469 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

sorry
this is a backend access

> credential removed by a moderator

Last edit: 11 years 7 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: remove credentials

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#196878](#196878) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories?start=20#196878 "Hello,  when i click the categories of my shop that are empty, i see an empty page.  Is there anyway to have a message that tells to the customers &quot;there are no products in this categories&quot;?  Thanks")*

Hi,

I tried to take a look but I have to admit that I don't understand the situation
The link to the brand page just give me categories without products and the link you gave for the product page give me a 404 error page.
But in the "featured" menu, I can see listing and product pages...

So ; would it be possible to have some explanations about what you want to achieve ; what is currently good and what is not good ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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