Forums / Templates, Stylesheets, Page Layout / Prevent top category image from showing on product page?

Prevent top category image from showing on product page?

Locked

Views: 2,142

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
18 Feb 2009, 6:24 AM
#1
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Prevent top category image from showing on product page?

Hi,

I have two questions...

  1. Do you know how to prevent top or sub-category images from displaying on the main product page? Example:

http://www.tastyglutenfreebakery.com/tastymuffin-p-1.html

See how the category image is there, just above the main product image? That's fine if it were one one of the category pages, but not the main product page. How do you remove this?

  1. Also, when clicking on any of the sub-category links, for instance, "Muffins," it goes right to the product page and thus not to the category Muffins. How do you make it so it goes directly to the category, not the product? The link shows that it's supposed to go to http://www.tastyglutenfreebakery.com/muffins-c-9_1.html but it changes automagically after you click the link to http://www.tastyglutenfreebakery.com/tastymuffin-p-1.html. What the darn?

Any help would be appreciated.

Thanks much.

18 Feb 2009, 7:00 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Prevent top category image from showing on product page?

JHouse:

Hi,

I have two questions...

  1. Do you know how to prevent top or sub-category images from displaying on the main product page? Example:

http://www.tastyglutenfreebakery.com/tastymuffin-p-1.html

See how the category image is there, just above the main product image? That's fine if it were one one of the category pages, but not the main product page. How do you remove this?

  1. Also, when clicking on any of the sub-category links, for instance, "Muffins," it goes right to the product page and thus not to the category Muffins. How do you make it so it goes directly to the category, not the product? The link shows that it's supposed to go to http://www.tastyglutenfreebakery.com/muffins-c-9_1.html but it changes automagically after you click the link to http://www.tastyglutenfreebakery.com/tastymuffin-p-1.html. What the darn?

Any help would be appreciated.

Thanks much.

Jh,

  1. Locate this:
    includes/templates/nunnathegluten/css/stylesheet.css

Add this to the stylesheet.css
#categoryIcon Img {display: none;}

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.

18 Feb 2009, 7:20 AM
#3
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: Prevent top category image from showing on product page?

Thanks for your help haredo.

Is there another way to pull this off, ideally from the admin area? I implemented your suggestion and it worked, however, there's still the code and the br tag causing spacing issues. I'm sure I can locate where to remove this code, but I can't help but think there's an option to turn off sub-category images in the admin area. If possible, I'd rather take this route.

Thanks.

18 Feb 2009, 2:44 PM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Prevent top category image from showing on product page?

  1. Also, when clicking on any of the sub-category links, for instance, "Muffins," it goes right to the product page and thus not to the category Muffins. How do you make it so it goes directly to the category, not the product?

On my site it does what you want. This is the normal behaviour.

Do you have more than one product in each sub-category? If you're just setting up the store, you might only have one in each, in which case that's the one that will be shown.

Rob

Breakfast: the most important donut of the day.

18 Feb 2009, 4:20 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Prevent top category image from showing on product page?

You could peek in the Admin settings for Configuration ... Product Info ...

Previous Next - Navigation Includes Category Position
Product's Category Image and Name Alignment Above Previous/Next Navigation Bar
0= off
1= Align Left
2= Align Center
3= Align Right

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!

18 Feb 2009, 7:33 PM
#6
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: Prevent top category image from showing on product page?

Ajeh:

You could peek in the Admin settings for Configuration ... Product Info ...
That did the trick. Thank you.

I can't tell you how many times I looked at both Product Info and Product Listing and couldn't find the solution. Thanks for your help.

18 Feb 2009, 9:30 PM
#7
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Prevent top category image from showing on product page?

Ah, the mage has stepped forward to enlighten us. :smartalec:

I'd set that so long ago I'd forgotten all about it. Upgrading is going to be like starting all over again. :lamo:

Rob

Breakfast: the most important donut of the day.

19 Feb 2009, 3:08 AM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Prevent top category image from showing on product page?

JHouse:

That did the trick. Thank you.

I can't tell you how many times I looked at both Product Info and Product Listing and couldn't find the solution. Thanks for your help.

Jh,
Glad Ajeh, got you on the right track.. she is the princess of Zen Cart.. :yes:

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.