Forums / Setting Up Categories, Products, Attributes / remove "add to cart" button for only 1 product

remove "add to cart" button for only 1 product

Locked

Started by dmserley on 6 Dec 2008, 2:33 PM · Views: 1,551

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
6 Dec 2008, 2:33 PM
#1
dmserley avatar

dmserley

New Zenner

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

remove "add to cart" button for only 1 product

One of my products is simply a link to another site where customer's can purchase an item in support of a cause...

the item is here: http://xoexplosion.com/index.php?main_page=product_info&cPath=36&products_id=153

does anyone know how to remove the "add to cart" button for this one product? I've tried making it free (but that still lets you add to cart) and removing the qty (but that still lets you add to cart)...

any help is appreciated,
Diane

Diane
XOExplosion.com
Silly name. Great stuff for your XO laptop.

6 Dec 2008, 2:56 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: remove "add to cart" button for only 1 product

open NOTEPAD on your computer.

Paste the following text into it...

#cartAdd {display: none;}

save the notepad file as p_153.css...

... (you do this by choosing "Save As" when saving, then select "All Files".)

Make sure the file is saves as p_153.css and NOT p_153.txt !

Upload that file to:-

includes/templates/studiofibonacci/css/

The ADD TO CART on THAT PRODUCT ONLY will now not display.


What you have done is create a PRODUCT SPECIFIC stylesheet - specific ONLY to Product ID 153, which is your zencart shop's ID of that product.

20 years a Zencart User

7 Dec 2008, 12:44 AM
#3
dmserley avatar

dmserley

New Zenner

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

Re: remove "add to cart" button for only 1 product

Sweet! Thanks, schoolboy.

I never knew that the css overrides could be for a specific page. I thought the overrides applied to all pages.... learn sumthin' new every day ;-)

thanks again,
Diane

Diane
XOExplosion.com
Silly name. Great stuff for your XO laptop.

17 Dec 2008, 8:23 PM
#4
ells avatar

ells

New Zenner

Join Date:
Nov 2008
Location:
Pacific Northwest
Posts:
24
Plugin Contributions:
0

Re: remove "add to cart" button for only 1 product

Yeah, I've found that being able to load css or javascript on specific pages like is very helpful. There are some help docs around that elaborate on that various options a little bit more.

17 Dec 2008, 8:33 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

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

Re: remove "add to cart" button for only 1 product

Yeah, those devs are sneaky. They stuck the CSS_read_me.txt file in the CSS directory where no one would see it.:P

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