Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / disable "There are no products to list in this category"

disable "There are no products to list in this category"

Locked

Started by animike on 6 Oct 2007, 8:33 PM · Views: 5,815

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
6 Oct 2007, 8:33 PM
#1
animike avatar

animike

New Zenner

Join Date:
Sep 2007
Posts:
7
Plugin Contributions:
0

Post #1 by animike

How to disable these words when there are no products??
And how can I disable the categories names from content??

Animike

6 Oct 2007, 10:28 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

If you look at that category in the admin there is a green box to the right of it - click it to turn that category off until you add items

Zen-Venom Get Bitten

7 Oct 2007, 8:24 AM
#3
animike avatar

animike

New Zenner

Join Date:
Sep 2007
Posts:
7
Plugin Contributions:
0

Post #3 by animike

The problem is that I want there only text without this phrase: "There are no products to list in this category".

Animike

7 Oct 2007, 12:55 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

Use the admin > tools > developers tool kit > search > enter short part of phrase to find the define for it and the associated file

Zen-Venom Get Bitten

7 Oct 2007, 7:49 PM
#5
animike avatar

animike

New Zenner

Join Date:
Sep 2007
Posts:
7
Plugin Contributions:
0

Post #5 by animike

Thx for your help.

I found a briliant idea (for me of course;) I simply remove this by putting "display:none" in the class of phrase;)

Animike

22 Oct 2007, 3:24 PM
#6
alanpruiz avatar

alanpruiz

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Post #6 by alanpruiz

Although there are no products under this category we still want to display the category. In the category text we do have a link to a different category that has the products. So although no products exist under the first category, we still want to display the category but without the message.

animike:

How to disable these words when there are no products??
And how can I disable the categories names from content??

Animike

22 Oct 2007, 3:33 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

kobra's advice is correct ... you can find exactly where to edit the wording by using the Developers Toolkit.

FAQs on the topic:
https://www.zen-cart.com/tutorials/index.php?article=38
https://www.zen-cart.com/tutorials/index.php?article=39

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Oct 2007, 8:12 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #8 by kobra

Although there are no products under this category we still want to display the category. In the category text we do have a link to a different category that has the products. So although no products exist under the first category, we still want to display the category but without the message.
You can or should use the link function they will display in the empty category with out having a duplicate product entry

Zen-Venom Get Bitten