Forums / General Questions / How to NOT display sub sub category images?

How to NOT display sub sub category images?

Locked

Views: 9,567

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
24 Mar 2008, 7:12 PM
#1
magneteye avatar

magneteye

Zen Follower

Join Date:
Mar 2007
Location:
Portland, OR
Posts:
163
Plugin Contributions:
0

How to NOT display sub sub category images?

Ok, so I know how to turn off the sub category images off by adding this to the stylesheet: #categoryImgListing {display:none;}

So that way i see my nice icon on the main cat page, but it doesn't carry over to the top of the sub category. Great.

Now my problem is when I have a sub category beneath a sub category, the image is carrying over and being placed at the top of the page. I can't figure anyway to remove it!

Look here:

Main Category w/ sub categories: http://www.atthemeadow.com/shop/index.php?main_page=index&cPath=1

Sub Cat w/ sub categories: http://www.atthemeadow.com/shop/index.php?main_page=index&cPath=1_28

You'll see the darn image is up there! Anyone have an idea how to hide it but keep that image on the previous screen?

16 Oct 2008, 2:11 AM
#2
nosleephotel avatar

nosleephotel

New Zenner

Join Date:
Sep 2008
Location:
Los Angeles, CA
Posts:
67
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

magneteye,

I don't know but great site. Looks wonderful. Question, what do you use for the mailing list?

16 Oct 2008, 3:11 AM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,849
Plugin Contributions:
18

Re: How to NOT display sub sub category images?

Rather than jumping neck-deep in the CSS, how about adjusting the category and sub-category sizes in the admin >> Configurations >> Images menu?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Oct 2008, 3:17 AM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,302
Plugin Contributions:
39

Re: How to NOT display sub sub category images?

I would personally just comment out the category Icon function in the tpl_modules_category_icon_display.php or whichever you are trying to stop the display

Make certain to override it :smile:

~Melanie

16 Oct 2008, 3:23 PM
#5
skyegospel avatar

skyegospel

New Zenner

Join Date:
Aug 2008
Location:
Isle of Skye, Scotland
Posts:
92
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

Wow - that's great looking site - well done! By the way, I am currently dooling over my keyboard!! YOu need o start doing intrnational shipping so I can taste some of that choc in the uk :D

3 Dec 2008, 5:35 PM
#6
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

Try...

admin > configuration > Image Required > false

Happy Holidays!

6 Dec 2008, 9:06 PM
#7
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

You can do this via the admin. This seems to work for me..

Admin > Configuration > Product Listing

Change the following two values as displayed below:

Include Product Listing Sub Categories Image - false
Include Product Listing Top Categories Image - false

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

6 Dec 2008, 9:47 PM
#8
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

Double check you site in FireFox -

If the sub-cat images still appear - then go to:

Admin > Configuration > Images and REMOVE any value from:

Subcategory Image Width
Subcategory Image Height
Top Subcategory Image Width
Top Subcategory Image Height

Happy Holidays!

7 Dec 2008, 3:47 PM
#9
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

DivaVocals:

You can do this via the admin. This seems to work for me..

Admin > Configuration > Product Listing

Change the following two values as displayed below:

Include Product Listing Sub Categories Image - false
Include Product Listing Top Categories Image - false

Forgot that there is one more place in the admin that you need to edit to hide the category images.. My previous post shows how to remove the category images from all the product listings. However category images will still appear on the product information pages. This last admin setting will remove category images from the product information pages.

Admin> Configuration> Product Info

Change the value as displayed below (this is the 3rd option):
Previous Next - Navigation Includes Category Name and Image Status = 1

Once you make both of these changes, the category images will no longer appear on the product listing pages or on the product information pages.. This works regardless as to whether or not you remove your category image size settings..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 Dec 2008, 4:03 PM
#10
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

DivaVocals:

Forgot that there is one more place in the admin that you need to edit to hide the category images.. My previous post shows how to remove the category images from all the product listings. However category images will still appear on the product information pages. This last admin setting will remove category images from the product information pages.

Admin> Configuration> Product Info

Change the value as displayed below (this is the 3rd option):
Previous Next - Navigation Includes Category Name and Image Status = 1

Once you make both of these changes, the category images will no longer appear on the product listing pages or on the product information pages.. This works regardless as to whether or not you remove your category image size settings..

I was working on one of my client's sites this morning, and I JUST made these same admin changes this morning. Here's the result:
Product information Page:
http://clients.overthehillweb.com/hairextensionssupplies/index.php?main_page=product_info&cPath=9&products_id=2

Category Product Listing Page:
http://clients.overthehillweb.com/hairextensionssupplies/index.php?main_page=index&cPath=9

Please note that I've made no CSS changes to remove the category icons, nor have I made any other changes to the images settings for the category images.. The two admin changes I posted will effectively hide the category icons from the two places they appear.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 Dec 2008, 4:53 PM
#11
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

All good tips for getting rid of SUB-category or Category images...

Maybe I'm missing something, here...help me out.

Unless I personally delete any value from:

Subcategory Image Width
Subcategory Image Height

in Admin > Configuration > Images

I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.

The ONLY solution I have found is to delete any value from the above mentioned.

Try it out on a site with sub-categories and view the site in FIREFOX.

I have over 60 stores and adding more - if there is a quicker, more efficient way of eliminating sub-category images from showing up in ANY browser, I'm all for it.

Thanks!

7 Dec 2008, 6:05 PM
#12
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

Convergence:

All good tips for getting rid of SUB-category or Category images...

Maybe I'm missing something, here...help me out.

Unless I personally delete any value from:

Subcategory Image Width
Subcategory Image Height

in Admin > Configuration > Images

I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.

The ONLY solution I have found is to delete any value from the above mentioned.

Try it out on a site with sub-categories and view the site in FIREFOX.

I have over 60 stores and adding more - if there is a quicker, more efficient way of eliminating sub-category images from showing up in ANY browser, I'm all for it.

Thanks!You should post a link to the page this appears on..

My post answers the OPs original question and deals with removing the category and subcategory icons from the product information and product category listing pages.. (which is what the OP was asking about..)

My primary browser is Firefox, so my results ARE based on viewing it in Firefox.. (I always test in Firefox first and IE second. Since IE is NOT a standards compliant browser, I make sure a site works in Firefox FIRST) It works perfectly as expected in Firefox, and it works with categories and SUB categories.. Here's another example (this site has sub-categories).

Product Information Page:
http://clients.overthehillweb.com/mybeautyaddiction/index.php?main_page=product_info&cPath=16_82&products_id=209

Sub-Category Listing Page:
http://clients.overthehillweb.com/mybeautyaddiction/index.php?main_page=index&cPath=16_82

It sounds to me like you've got something else going on with your site, and the only way to know is to see a link to the offending page..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 Dec 2008, 6:39 PM
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

One more thing to add.. If using CSS or the available admin functions DO NOT turn off your category icons on the product information page or the category listing page, then you've likely got something else interfering with your normal cart functions..

The links I posted above (The My Beauty Addiction site) used to be controlled via the stylesheet as follows:```
.categoryIcon {
display: none;
}


The CSS fix removes the category icons from both the **product information page** AND the **category listing page**.. The admin function allows you to turn the category icons off on one page while leaving them available on the other. (ie: turn off on the category listing page, but leave on on the product information page)

> **Convergence:**
>
> I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.
It has just occurred to me as I type this that you are indeed not talking about the same thing the OP was inquiring about. 

It occurred to me that you might be talking about the category page which would shows links to all of the sub-categories if they are used (which is NOT the same thing as the category listing page -- the subject of the OPs post). If we use my clients site as an example, it sounds like you are referring to this page: <http://clients.overthehillweb.com/mybeautyaddiction/index.php?main_page=index&cPath=16>

If that's the case, then it sounds like you had subcategory images at one time, and then tried to remove the sub-category images, and Zen still shows a reference to a non existing image. (if this is what happened, it's a common error..:smile: and I am guessing that this is what happened since you have not posted a link to the offending page) ZenCart is kind funky, and if you did not correctly remove the sub-category images, you will get the empty images and the ALT tags showing in Firefox. 

This is why Firefox is the better browser to test in.. IE does not correctly display the page giving one the impression that it works in IE but not in Firefox.. The truth is Firefox is displaying what is REALLY happening with your page while IE is covering it up.. 

In any case, to fix this you need to remove the sub-catgory images by editing the actual sub-categories. When you edit the sub-category you need to go to 
"**Delete Image?** NOTE: Removes Image from Product, Image is NOT removed from server:" 
Select YES and save your sub category. The empty ALT tag should disappear.

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 Dec 2008, 8:52 PM
#14
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

One last thought.. There's another reason why your solution is not necessarily the best solution..

Category icons appear in a few primary locations:

  • To display the top level categories on the main page (if the appropriate settings are used in the admin)
  • To display the sub-categories on the category display (if sub categories are used)
  • Product Information Page
  • Category Product Listing Page
    Your solution will remove the category icons from EVERYWHERE they appear in ZenCart. At the risk of stating the obvious, honestly, the EASIEST way to have no category icons appear anywhere in ZenCart is to simply NOT add an image to the category (or sub-catgory) at all when you create it.

While what you suggest as a solution appears to solve YOUR immediate problem, I suspect it does so because your categories still have a reference to an old category image that was not cleared completely. (Again since you have not posted a link.. I am GUESSING, but I believe if you do clean up your categories, that you will find your issue will be resolved) If you want to control where the category icons appear, there are much better ways to do this than what you suggest.

The options I posted can be used to control the appearance of the category icons on the Product Information Page & Category Product Listing Page. The top level categories appearing on the main page are controlled by the admin, and sub-categories icons appearing on the category pages can be controlled by simply not adding an image to your sub-categories when you create them.

That said the only thing I CANNOT find is an admin or CSS solution for NOT displaying the category or sub-category icon images on the category displays while still alllowing category icons to be displayed on the Product Information & Category Product Listing pages.

It appears that the display of category icons on the category displays (top level or sub-categories) is an all or none option unless you edit the tpl_main_page.php file so that only the category name but not the category image appears on the category & sub-category displays.

Convergence:

All good tips for getting rid of SUB-category or Category images...

**Maybe I'm missing something, here...help me out.

Unless I personally delete any value from:

Subcategory Image Width
Subcategory Image Height

in Admin > Configuration > Images**

I personally get what appears to be double rows of sub-categories while viewing the site in FIREFOX. This is not actually two rows of sub-categories, but the ALT tag in a missing image above the sub-category itself.

The ONLY solution I have found is to delete any value from the above mentioned.

Try it out on a site with sub-categories and view the site in FIREFOX.

I have over 60 stores and adding more - if there is a quicker, more efficient way of eliminating sub-category images from showing up in ANY browser, I'm all for it.

Thanks!

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

7 Jan 2009, 6:52 PM
#15
sparklefish avatar

sparklefish

New Zenner

Join Date:
Oct 2006
Location:
Scotland
Posts:
53
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

In response to the earlier post in which the person wanted to remove the image link which appears above the sub-category name (when selecting a top category from the sidebox)...

You can edit includes/modules/{your_template}/category_row.php.

Replace

 
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES .  $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT, 'class="categoryImg"') . ' <br />' . $categories->fields['categories_name'] . '</a>');
```with

'text' => $categories->fields['categories_name'] );


If you do everything in Admin to switch off sub-category images this is the only way I have found to completely remove the image not found link.
8 Jan 2009, 4:18 AM
#16
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

sparklefish:

In response to the earlier post in which the person wanted to remove the image link which appears above the sub-category name (when selecting a top category from the sidebox)...

You can edit includes/modules/{your_template}/category_row.php.

Replace

'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT, 'class="categoryImg"') . ' <br />' . $categories->fields['categories_name'] . '</a>');

> ```
 
 'text' =>  $categories->fields['categories_name'] );
```If you do everything in Admin to switch off sub-category images this is the only way I have found to completely remove the image not found link.If have you turned off everything in the admin and are still getting the image not found link, then it is likely that you have a "phantom" image reference still in your category setup... Look at your category page.. If you see a reference to an image (see my attachment to see what I mean), then you need to clear the image reference, and the problem will disappear.. You can do that by setting "**Delete Image?**" to "Yes" and then saving the category..

Either fix that or simply use your style sheet to suppress the display of the images.. These are both much better solution than hacking at the core code to do this..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

10 Apr 2009, 8:51 PM
#17
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

DivaVocals:

One last thought.. There's another reason why your solution is not necessarily the best solution..

Category icons appear in a few primary locations:

  • To display the top level categories on the main page (if the appropriate settings are used in the admin)
  • To display the sub-categories on the category display (if sub categories are used)
  • Product Information Page
  • Category Product Listing Page

Your solution will remove the category icons from EVERYWHERE they appear in ZenCart. At the risk of stating the obvious, honestly, the EASIEST way to have no category icons appear anywhere in ZenCart is to simply NOT add an image to the category (or sub-catgory) at all when you create it.

While what you suggest as a solution appears to solve YOUR immediate problem, I suspect it does so because your categories still have a reference to an old category image that was not cleared completely. (Again since you have not posted a link.. I am GUESSING, but I believe if you do clean up your categories, that you will find your issue will be resolved) If you want to control where the category icons appear, there are much better ways to do this than what you suggest.

The options I posted can be used to control the appearance of the category icons on the Product Information Page & Category Product Listing Page. The top level categories appearing on the main page are controlled by the admin, and sub-categories icons appearing on the category pages can be controlled by simply not adding an image to your sub-categories when you create them.

That said the only thing I CANNOT find is an admin or CSS solution for NOT displaying the category or sub-category icon images on the category displays while still alllowing category icons to be displayed on the Product Information & Category Product Listing pages.

It appears that the display of category icons on the category displays (top level or sub-categories) is an all or none option unless you edit the tpl_main_page.php file so that only the category name but not the category image appears on the category & sub-category displays.

Sorry for not replying sooner - as I've been on other projects.

One of the things I forget to mention, and don't know if it makes a difference, is we use the stores as catalogs only, ie: Showcase Mode -

Also, these stores were previously on a server running php4 - when we upgraded to a new server running php5 - OUR solution no longer worked as we needed to select "Image Required" in order for product images to show up on the product info pages - seems what we did worked with php4 but NOT with php5.

Now WE are having problems, LOL, with the alto text showing where there is no image. While there is NO image uploaded for sub-categories in Categories/Products the image being displayed is pixel_trans.gif -

Anyone want to revisit this?

Thanks!

10 Apr 2009, 11:38 PM
#18
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

Convergence:

Now WE are having problems, LOL, with the alto text showing where there is no image. While there is NO image uploaded for sub-categories in Categories/Products the image being displayed is pixel_trans.gif -

Anyone want to revisit this?

Thanks!The post right above yours might be the answer.. Basically you need to delete the reference to the non-existent image from your category..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

11 Apr 2009, 2:18 AM
#19
convergence avatar

convergence

New Zenner

Join Date:
Nov 2006
Location:
Brighton, CO
Posts:
90
Plugin Contributions:
0

Re: How to NOT display sub sub category images?

DivaVocals:

The post right above yours might be the answer.. Basically you need to delete the reference to the non-existent image from your category..

:) Trust me - there are no images in the categories. Never have been. This is very strange stuff.

11 Apr 2009, 4:09 AM
#20
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: How to NOT display sub sub category images?

Convergence:

:) Trust me - there are no images in the categories. Never have been. This is very strange stuff.Well one of the best places to start troubleshooting is to see if the issue persists when switching back to the classic template.. The other thing is to check your categories tables.. make sure the image reference isn't there..

My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.