Post by danmad » Thu Oct 06, 2022 5:05 pm

Hello,
I have a problem where this text "There are no products to list in this category." shows when I create a new category. How do I get rid of this?
Im almost done with my website, beside this annoys me to much.

Newbie

Posts

Joined
Thu Oct 06, 2022 4:48 pm

Post by paulfeakins » Thu Oct 06, 2022 7:23 pm

danmad wrote:
Thu Oct 06, 2022 5:05 pm
I have a problem where this text "There are no products to list in this category." shows when I create a new category. How do I get rid of this?
Add some products to the category.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Cue4cheap » Thu Oct 06, 2022 8:00 pm

danmad wrote:
Thu Oct 06, 2022 5:05 pm
Hello,
I have a problem where this text "There are no products to list in this category." shows when I create a new category. How do I get rid of this?
Im almost done with my website, beside this annoys me to much.
Go into the language file and adjust that text. Now to give other answers please tell us what version of OC you are running. It could be done by a VQMod/OCMod, event, etc.

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by JNeuhoff » Thu Oct 06, 2022 8:09 pm

Just change the catalog/view/theme/<your-theme>/template/product/category.twig to e.g. something like 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 %}
      #}

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by danmad » Fri Oct 07, 2022 4:41 am

Im currently using the latest version of OC!

Newbie

Posts

Joined
Thu Oct 06, 2022 4:48 pm

Post by danmad » Fri Oct 07, 2022 4:48 am

JNeuhoff wrote:
Thu Oct 06, 2022 8:09 pm
Just change the catalog/view/theme/<your-theme>/template/product/category.twig to e.g. something like 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 %}
 #}
What should I change it to? I want to get rid of it!

Newbie

Posts

Joined
Thu Oct 06, 2022 4:48 pm

Post by Cue4cheap » Fri Oct 07, 2022 12:00 pm

danmad wrote:
Fri Oct 07, 2022 4:41 am
Im currently using the latest version of OC!
So that version is what exactly? 3.x.x.x or 4.0.1.1 or ????
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by JNeuhoff » Fri Oct 07, 2022 5:52 pm

danmad wrote:
Fri Oct 07, 2022 4:48 am
What should I change it to? I want to get rid of it!
Please read the forum post! Change it as shown in above post, which shows the relevant section as being commented out.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by danmad » Fri Oct 07, 2022 10:49 pm

Cue4cheap wrote:
Fri Oct 07, 2022 12:00 pm
danmad wrote:
Fri Oct 07, 2022 4:41 am
Im currently using the latest version of OC!
So that version is what exactly? 3.x.x.x or 4.0.1.1 or ????
Mike
Im using Version 3.0.3.8.

Newbie

Posts

Joined
Thu Oct 06, 2022 4:48 pm

Post by danmad » Fri Oct 07, 2022 10:51 pm

JNeuhoff wrote:
Fri Oct 07, 2022 5:52 pm
danmad wrote:
Fri Oct 07, 2022 4:48 am
What should I change it to? I want to get rid of it!
Please read the forum post! Change it as shown in above post, which shows the relevant section as being commented out.
I located myself into that folder, and its already showing the codes that you submitted.

Newbie

Posts

Joined
Thu Oct 06, 2022 4:48 pm

Post by JNeuhoff » Fri Oct 07, 2022 11:47 pm

danmad wrote:
Fri Oct 07, 2022 10:51 pm
I located myself into that folder, and its already showing the codes that you submitted.
No, it doesn't show the exact same code! It's not commented out with

Code: Select all

{# .... #}
brackets.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Joe1234 » Sat Oct 08, 2022 12:18 am

Better you use an extension that hides an empty category, than show a customer an empty page. I have no idea why something like that isn't built in.

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

Post by danmad » Thu Oct 13, 2022 11:06 pm

JNeuhoff wrote:
Fri Oct 07, 2022 11:47 pm
danmad wrote:
Fri Oct 07, 2022 10:51 pm
I located myself into that folder, and its already showing the codes that you submitted.
No, it doesn't show the exact same code! It's not commented out with

Code: Select all

{# .... #}
brackets.
Thank you so much man, you solved it! Made my day :)

Newbie

Posts

Joined
Thu Oct 06, 2022 4:48 pm

Post by JNeuhoff » Fri Oct 14, 2022 12:20 am

Now that it is solved, please add '[SOLVED]' to the beginning of this forum thread title.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am

Who is online

Users browsing this forum: No registered users and 89 guests