Remove category image?

Started by notkristina on 10 May 2006, 9:34 PM · Views: 8,862

Results 21 to 30 of 30
3 Jul 2006, 3:23 AM
#21
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Remove category image?

Copy the file:
/includes/templates/templates_default/tpl_modules_category_icon_display.php

To your templates and overrides directory:
/includes/templates/ea_templates/tpl_modules_category_icon_display.php

Change this line approximately line 14:

<div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id'])),zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']), CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT) . '<br />' . zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']) .  '</a>'; ?></div>

To read:

<div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . (zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id'])) != '' ? zen_image(DIR_WS_IMAGES . zen_get_categories_image(zen_get_products_category_id((int)$_GET['products_id'])),zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']), CATEGORY_ICON_IMAGE_WIDTH, CATEGORY_ICON_IMAGE_HEIGHT) . '<br />' : '') . zen_get_categories_name(zen_get_products_category_id((int)$_GET['products_id']), $_SESSION['languages_id']) .  '</a>'; ?></div>

Now only Categories that have catetgories_image that is not empty will display their image on the product _info page ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Jul 2006, 3:59 AM
#22
johnny43 avatar

johnny43

Zen Follower

Join Date:
Feb 2006
Posts:
231
Plugin Contributions:
0

Re: Remove category image?

WOW...Great that did it.... THANK YOU :)

But the overwrite did not work ...I had to change the includes/templates/templates_default/tpl_modules_category_icon_display.php

When I saved to /includes/templates/ea_templates/tpl_modules_category_icon_display.php
it did not work......

https://www.planetebio.net - Eat Right Feel Good !

3 Jul 2006, 4:12 AM
#23
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove category image?

Make sure that I spelled your templates and overrides directory name correctly ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Jul 2006, 4:16 AM
#24
johnny43 avatar

johnny43

Zen Follower

Join Date:
Feb 2006
Posts:
231
Plugin Contributions:
0

Re: Remove category image?

I did a save as direct to that directory....Did not work....

https://www.planetebio.net - Eat Right Feel Good !

3 Jul 2006, 4:19 AM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Remove category image?

Could be because I gave you the wrong path:

/includes/templates/ea_templates/templates/tpl_modules_category_icon_display.php

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Jul 2006, 4:32 AM
#26
johnny43 avatar

johnny43

Zen Follower

Join Date:
Feb 2006
Posts:
231
Plugin Contributions:
0

Re: Remove category image?

YUP....I moved to /includes/templates/ea_templates/templates/tpl_modules_category_icon_display.php and works great...I reset the origional to its origional state and the site is running on the overite....

Thanks again :)

PS any chance of you shedding some light for me on this post ?
http://www.zen-cart.com/forum/showthread.php?t=38785&page=2

https://www.planetebio.net - Eat Right Feel Good !

14 Jul 2006, 5:26 AM
#27
xoki avatar

xoki

New Zenner

Join Date:
Jul 2006
Posts:
6
Plugin Contributions:
0

Re: Remove category image?

Not sure how old this is, found it in a search.

But inserting

#categoryIcon {display:none}

into the stylesheet worked out great for me.

18 Jul 2006, 7:37 AM
#28
dogfusion avatar

dogfusion

Zen Follower

Join Date:
Jun 2006
Posts:
83
Plugin Contributions:
1

Re: Remove category image?

^ Great tip, thanks! :thumbsup:

Now, I just have to figure out how to get rid of the 'nopic' on the very bottom center of the main page. :wacko:

Attempting upgrade and hoping for the best
https://www.dogfusion.com

18 Jul 2006, 8:14 AM
#29
dogfusion avatar

dogfusion

Zen Follower

Join Date:
Jun 2006
Posts:
83
Plugin Contributions:
1

Re: Remove category image?

DogFusion:

Now, I just have to figure out how to get rid of the 'nopic' on the very bottom center of the main page. :wacko:

Problem Solved It was because of Purpleshades 1.3, I didn't have the Zen Cart banner for the bottom uploaded. Everything is now great! :yes:

Attempting upgrade and hoping for the best
https://www.dogfusion.com

23 Feb 2011, 8:00 PM
#30
woodyla avatar

woodyla

New Zenner

Join Date:
Feb 2011
Posts:
7
Plugin Contributions:
0

Re: Remove category image?

Newbie to Zen Cart, but thought I would post my experience with category images. Got a template from template monster and when you clicked on any category you got a nice ugly picture along with a description in german (I think). I just wanted it so that when someone clicked on a category and it listed all the items in that category it didn' t show a pic for the category you clicked on. It would still show pics for the actual items, just not a pic for the category.

Here's what I did:

Logon to Zen Cart, then go do Catalog->Categories/Products. This will list all of your categories. Look over to the far right and click on the edit button (green, circle e).

Category Description: I deleted all the default text.

Or, select an existing image file from server, filename: none (just type the word none)

Delete Image? Select Yes. It won't actually delete the image from the server, just removes it from category.

Click Save

Now go to your site and hold Shift button down while you click on the refresh button in your browser. Sometimes, it will show a picture box with a red X. If this happens, go back and edit that category again and select Delete Image? Yes and then click Save. Don't know why it has to be done twice sometimes? Hope this helps someone.