Post by Sm00dE » Wed Apr 11, 2018 2:25 am

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

New member

Posts

Joined
Wed Feb 01, 2012 4:32 am

Post by xxvirusxx » 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..

Extensions converted by me | Buy me a beer | Contact me on Skype


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - Romania

Post by jsw » Thu Apr 30, 2020 3:53 am

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!

jsw
Newbie

Posts

Joined
Wed Jun 12, 2013 11:42 pm
Location - Canada

Post by jormens » Tue May 12, 2020 6:04 am

Hi
I have the same problem, I want to delete that message, I followed the steps but it keeps showing!
Please help me.
regards

Newbie

Posts

Joined
Fri Aug 01, 2014 7:02 am

Post by cyclops12 » Wed May 13, 2020 12:52 am

You could also just disable the empty categories until you have products for them

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 8 guests