Page 1 of 1
[SOLVED] - How to remove empty category information
Posted: Wed Apr 11, 2018 2:25 am
by Sm00dE
Hello,
I have question how to remove in Opencart 3.0.2.0 version empty category "Continue" button and text "There are no products to list in this category."
Like here:
https://demo.opencart.com/index.php?rou ... path=25_30
Re: How to remove empty category information
Posted: Wed Apr 11, 2018 3:14 am
by xxvirusxx
Edit :
Code: Select all
catalog/view/theme/default/template/product/category.twig
Replace:
Code: Select all
{% if not categories and not products %}
<p>{{ text_empty }}</p>
<div class="buttons">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
{% endif %}
with this:
Code: Select all
<!--{% if not categories and not products %}
<p>{{ text_empty }}</p>
<div class="buttons">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
{% endif %}-->
This can me bade as ocmod/vqmod..
Re: How to remove empty category information
Posted: Thu Apr 30, 2020 3:53 am
by jsw
xxvirusxx wrote: ↑Wed Apr 11, 2018 3:14 am
Edit :
Code: Select all
catalog/view/theme/default/template/product/category.twig
Replace:
Code: Select all
{% if not categories and not products %}
<p>{{ text_empty }}</p>
<div class="buttons">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
{% endif %}
with this:
Code: Select all
<!--{% if not categories and not products %}
<p>{{ text_empty }}</p>
<div class="buttons">
<div class="pull-right"><a href="{{ continue }}" class="btn btn-primary">{{ button_continue }}</a></div>
</div>
{% endif %}-->
This can me bade as ocmod/vqmod..
Removed "There is no products to list in this category". Thank you @xxvirusxx very much for the solution!
Re: [SOLVED] - How to remove empty category information
Posted: Tue May 12, 2020 6:04 am
by jormens
Hi
I have the same problem, I want to delete that message, I followed the steps but it keeps showing!
Please help me.
regards
Re: [SOLVED] - How to remove empty category information
Posted: Wed May 13, 2020 12:52 am
by cyclops12
You could also just disable the empty categories until you have products for them
Re: [SOLVED] - How to remove empty category information
Posted: Sun Jun 05, 2022 11:01 pm
by Joe1234
cyclops12 wrote: ↑Wed May 13, 2020 12:52 am
You could also just disable the empty categories until you have products for them
I'm doing this now, but it's having. Conflicts when in responsive mode with my template. Care to share how you did this? And does your way hide it from menus?