Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need to remove shopping cart from one category

Need to remove shopping cart from one category

Views: 549

Results 1 to 2 of 2
21 Apr 2011, 4:40 AM
#1
sharonob avatar

sharonob

New Zenner

Join Date:
Apr 2011
Posts:
14
Plugin Contributions:
0

Need to remove shopping cart from one category

Hello!

Usually I am able to find my answer within existing threads but I have had no success with this.

I want to remove all cart info from one category only. Tried to override with the category css file but to no avail.

My working site is:http://www/sharonobrien.com/SharonOB/
and the category product listing is at: http://www.sharonobrien.com/SharonOB/index.php?main_page=index&cPath=3

The problem is that the cart needs to removed from the main product info page for that category (http://www.sharonobrien.com/SharonOB/index.php?main_page=product_info&cPath=3&products_id=36) so I think I need to alter the php with an if/then clause, but don't know which page. Have had no luck so far.

Can anyone let me know where to place and if/then statement so that the product info page within my Category #3 will not show the shopping cart stuff? These pieces are commission only.

Thanks in advance for any help!!

SharonOB
https://www.sharonobrien.com
[email protected]

21 Apr 2011, 5:16 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Need to remove shopping cart from one category

You apparently have some CSS error in your c_3.css, before the #cartAdd rule. When I deleted everything but this from the file, it worked as desired:```
/-----------------CART--------Shopping Cart Display*/
#cartAdd {display: none;}

The per-category stylesheet should only have the rules that are different from the main stylesheet.