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..

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

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

Post by Joe1234 » Sun Jun 05, 2022 11:01 pm

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?

v3.0.3.9 php 8.1
I'm here for a reason, if your response is contact a/the developer, just don't reply.


Active Member

Posts

Joined
Sat Jan 01, 2022 5:47 am
Who is online

Users browsing this forum: No registered users and 252 guests