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

#   Empty page for empty categories

##

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 3 months ago [\#55625](#55625) by [d4rkcloud](/forum/user/7676-d4rkcloud "View d4rkcloud's Profile")  *[Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#55625 "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")* was created by *[d4rkcloud](/forum/user/7676-d4rkcloud "View d4rkcloud's Profile")*

Hello,

when i click the categories of my shop that are empty, i see an empty page.
[img size=Here][ www.fiorionlinevotadoro.it/new/](http://www.fiorionlinevotadoro.it/new/)[/img]
Is there anyway to have a message that tells to the customers "there are no products in this categories"?

Thanks

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

14 years 3 months ago -  14 years 3 months ago [\#55737](#55737) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#55737 "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,

You will have to edit the file "listing" of the view "product" via the menu Display-&gt;Views and change the code:
&lt;?php }
$html = ob_get_clean();

to:
&lt;?php }else{
echo 'there are no products in this categories';
}
$html = ob_get_clean();

Last edit: 14 years 3 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [d4rkcloud](/forum/user/7676-d4rkcloud "View d4rkcloud's Profile")

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

14 years 3 months ago [\#55817](#55817) by [d4rkcloud](/forum/user/7676-d4rkcloud "View d4rkcloud's Profile")  Replied by *[d4rkcloud](/forum/user/7676-d4rkcloud "View d4rkcloud's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#55817 "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")*

Perfect!

Thank you! ![B)](/media/kunena/emoticons/1.png "B)")

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

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

Less More

- Posts: 60
- Thank you received: 0
-
-

14 years 2 months ago -  14 years 2 months ago [\#61708](#61708) by [Dzumla](/forum/user/4800-dzumla "View Dzumla's Profile")  Replied by *[Dzumla](/forum/user/4800-dzumla "View Dzumla's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#61708 "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")*

This isn't working for me.

Did it but i see no effect. I also so no effect when altering tables in order to get show the product info below the image (read that in another post).

It is as if I am changing the wrong file that has nothing to do with this.
Code:

&lt;?php } else { echo "&lt;p&gt;There are no products in this category yet, please check back later.&lt;/p&gt;"; } $html = ob_get_clean(); if(!empty($html)){ ?&gt; &lt;div id="&lt;?php echo $this-&gt;params-&gt;get('main_div_name');?&gt;" class="hikashop_category_information hikashop_products_listing_main"&gt;

I even see the trashcan next to "listing" to remove the customization, and it's there when I exit and come back, but still nothing on the blank pages.

Any ideas?

p.s.

I cleared cache.

p.s.

I just got fed up with it and deleted everything from listing.php (yes, it's empty) and saved it, and it all still works like i didn't delete anything :laugh: Should I maybe make the change in the actual php file, rather than in the display &gt; view section?

Last edit: 14 years 2 months ago by [Dzumla](/forum/user/4800-dzumla "View Dzumla's Profile").

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

14 years 2 months ago [\#61874](#61874) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#61874 "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,

When you are in the menu Display-&gt;Views, you will have one occurrence of each hikashop view file for each one of your templates. So if you don't see the changes you're making in a view file, it means that you're probably editing the view file for another template than the one you're actually using on your front end.
Or that you have page caching on your website.

The following user(s) said Thank You: [Dzumla](/forum/user/4800-dzumla "View Dzumla's Profile")

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

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

Less More

- Posts: 60
- Thank you received: 0
-
-

14 years 2 months ago [\#61875](#61875) by [Dzumla](/forum/user/4800-dzumla "View Dzumla's Profile")  Replied by *[Dzumla](/forum/user/4800-dzumla "View Dzumla's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#61875 "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")*

It was the template problem. I didn't specify which to choose. Thanks!

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

13 years 4 weeks ago [\#125557](#125557) by [Lutz](/forum/user/26105-lutz "View Lutz's Profile")  Replied by *[Lutz](/forum/user/26105-lutz "View Lutz's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#125557 "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
The text message is working fine as Nicolas has described it.
I have used a text variable LS_EMPTY_LIST, because I have a multi language page:

&lt;?php }else{
echo "&lt;font color='#FF00EB'&gt;";
echo JText::_('LS_EMPTY_LIST');
echo "&lt;/font&gt;";
}
$html = ob_get_clean();

Is there a chance to **show a MODULE** , ideal with a BACK button in that module, if the category is empty?
I did not find a way with the ADVANCED MODULE MANAGER.
Thank you
Lutz

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

13 years 4 weeks ago [\#125591](#125591) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#125591 "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,

You can use such extension to add a module display wherever you want with a simple tag:
[ extensions.joomla.org/extensions/core-en...embed-a-include/6402](http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/embed-a-include/6402)

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

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

Less More

- Posts: 49
- Thank you received: 0
-
-

13 years 3 weeks ago [\#125846](#125846) by [Lutz](/forum/user/26105-lutz "View Lutz's Profile")  Replied by *[Lutz](/forum/user/26105-lutz "View Lutz's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#125846 "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")*

Grazie Nicolas,

its working great.

Lutz

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

12 years 1 month ago [\#170544](#170544) by [innoads](/forum/user/33433-innoads "View innoads's Profile")  Replied by *[innoads](/forum/user/33433-innoads "View innoads's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#170544 "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 find the exact code on that file, but only found
}
}

$html = ob_get_clean();

It seems the code has changed. I tried to put the code before
$html = ob_get_clean();

but it didn't work. Where to put the code for empty categories here?

Thanks,
Andreas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU1NjI1LWVtcHR5LXBhZ2UtZm9yLWVtcHR5LWNhdGVnb3JpZXM/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 1 month ago [\#170598](#170598) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#170598 "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,

Now, you can replace the code: Code:

if(!empty($html)) { ?&gt; &lt;div id="&lt;?php echo $this-&gt;params-&gt;get('main_div_name');?&gt;" class="hikashop_category_information hikashop_products_listing_main"&gt;&lt;?php echo $html; ?&gt;&lt;/div&gt; &lt;?php }

with: Code:

if(!empty($html)) { ?&gt; &lt;div id="&lt;?php echo $this-&gt;params-&gt;get('main_div_name');?&gt;" class="hikashop_category_information hikashop_products_listing_main"&gt;&lt;?php echo $html; ?&gt;&lt;/div&gt; &lt;?php }else{ echo "&lt;p&gt;There are no products in this category yet, please check back later.&lt;/p&gt;"; }

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

12 years 1 month ago [\#170648](#170648) by [innoads](/forum/user/33433-innoads "View innoads's Profile")  Replied by *[innoads](/forum/user/33433-innoads "View innoads's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#170648 "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 Nicolas,

in the view product/listing I can not find the exact code but very similar: Code:

if(!empty($html)){ ?&gt; &lt;div id="&lt;?php echo $this-&gt;params-&gt;get('main_div_name');?&gt;" class="hikashop_category_information hikashop_categories_listing_main"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php } ?&gt;

If I replace it with the code you wrote there is still nothing displayed on empty categories.

Is the code in another view now?

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

12 years 1 month ago [\#170661](#170661) 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#170661 "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,

The given code should work fine, are you sure that you are editing the view in the correct template ?

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

12 years 1 month ago [\#170770](#170770) by [innoads](/forum/user/33433-innoads "View innoads's Profile")  Replied by *[innoads](/forum/user/33433-innoads "View innoads's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#170770 "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 double checked and I did everything as described. There is only a small difference in the code I found in my listing view (as I posted before).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU1NjI1LWVtcHR5LXBhZ2UtZm9yLWVtcHR5LWNhdGVnb3JpZXM/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#172267](#172267) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#172267 "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,

Are you sure that you edited the right view (I mean, for the right front-end template) ?
You can add some html content in the view in order to be sure that your modification is right displayed in the front-end.

If you're sure that you edited the right view for the right template, please provide a link to your website.

Regards,

---

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

The following user(s) said Thank You: [innoads](/forum/user/33433-innoads "View innoads's Profile")

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

12 years 1 month ago -  12 years 3 weeks ago [\#173309](#173309) by [innoads](/forum/user/33433-innoads "View innoads's Profile")  Replied by *[innoads](/forum/user/33433-innoads "View innoads's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#173309 "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,

yes I am sure and I placed some html code to verify it.

Before editing anything the code looks like the 1st attached file (I am using JM Creatrix template from joomlaman.com).

[strike]Link is attached in 2nd file.[/strike] link attached to the issue ticket

Regards

Last edit: 12 years 3 weeks ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

12 years 2 weeks ago [\#175021](#175021) by [innoads](/forum/user/33433-innoads "View innoads's Profile")  Replied by *[innoads](/forum/user/33433-innoads "View innoads's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#175021 "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,

did you have the chance to check the code?

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU1NjI1LWVtcHR5LXBhZ2UtZm9yLWVtcHR5LWNhdGVnb3JpZXM/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 2 weeks ago [\#175028](#175028) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#175028 "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 just looked at the file [ www.hikashop.com/media/kunena/attachments/33433/listing.txt](http://www.hikashop.com/media/kunena/attachments/33433/listing.txt) that you provided but I don't see the code change that I gave you added in.
Also, you provided a link to your website, but you didn't provide a direct link to the page where you want that to display so I checked your website but couldn't find it.

The following user(s) said Thank You: [innoads](/forum/user/33433-innoads "View innoads's Profile")

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

12 years 2 weeks ago [\#175142](#175142) by [innoads](/forum/user/33433-innoads "View innoads's Profile")  Replied by *[innoads](/forum/user/33433-innoads "View innoads's Profile")* on topic *[Re: Empty page for empty categories](/forum/4-how-to/55625-empty-page-for-empty-categories#175142 "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,

the problem was that I filtered product &amp; my template in views. But I didn't realize that still category/listing.php and product/listing.php were in the list. So when I tried it out, I used category/listing.php and that was the problem.

Now it works.

Thank you very much!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzU1NjI1LWVtcHR5LXBhZ2UtZm9yLWVtcHR5LWNhdGVnb3JpZXM/dG1wbD1tYXJrZG93bg==) 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 [\#183668](#183668) 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#183668 "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 used the above code to add a note to empty categories which worked great but I have now spotted that the same note shows at the bottom of every product as well now. Any idea why this is happening? I only want it to show on empty catagories.

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

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

[](#top)
