Forums / Basic Configuration / remove add to cart for specific products

remove add to cart for specific products

Started by thegunstoreguy on 6 May 2015, 4:56 PM · Views: 3,248

Results 1 to 8 of 8
6 May 2015, 4:56 PM
#1
thegunstoreguy avatar

thegunstoreguy

New Zenner

Join Date:
May 2015
Location:
Manteca. California
Posts:
10
Plugin Contributions:
0

remove add to cart for specific products

I have some products that cannot be paid for over the internet and must be done in person but i want to advertise that i have them and the quantities.

Is there a way to remove the add to cart button for specific products?

6 May 2015, 5:10 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: remove add to cart for specific products

You could make those Products as Document Products rather than Product General and edit the setting in the Catalog ... Product Types ... and uncheck the box for Add to Cart ...

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!

6 May 2015, 6:49 PM
#3
divavocals avatar

divavocals

Totally Zenned

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

Re: remove add to cart for specific products

TheGunStoreGuy:

I have some products that cannot be paid for over the internet and must be done in person but i want to advertise that i have them and the quantities.

Is there a way to remove the add to cart button for specific products?
Make them "Call for Price" products.. Meaning select the "Call for Price" option in when editing products..

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 May 2015, 7:36 PM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,878
Plugin Contributions:
7

Re: remove add to cart for specific products

I originally used a css file per product to hide the Add to cart button...then later changed that to a bit of code in the product page that reads a new database field in the products table to hide the button/price. The field is set in the admin edit product page.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

6 May 2015, 9:20 PM
#5
divavocals avatar

divavocals

Totally Zenned

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

Re: remove add to cart for specific products

torvista:

I originally used a css file per product to hide the Add to cart button...then later changed that to a bit of code in the product page that reads a new database field in the products table to hide the button/price. The field is set in the admin edit product page.
and just because I'm curious.. I've always used the "Call for Price" option to manage products that should be seen but not purchased in the store. Why did you opt for the two options you used?? Inquiring because I want to understand if there is a better way that I should have used..

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 May 2015, 10:24 PM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,878
Plugin Contributions:
7

Re: remove add to cart for specific products

I've always used the "Call for Price" option
Does that not just put "Call for Price" on the product?
I don't want them to call for price, or call at all!!

In my case the "product" is usually a generic description of a large group of similar products including how to select the right one etc. so I want price, add to cart, attribute, stock etc. all hidden as it not a real product at all.
I long ago re-did all the css around the Add to Cart button to get more control and thought the easiest way to hide the price block was using a p_xx.css file with a display:none.
Then when I had a few of these p_xx.css lying around I thought it would be neater/less messy to just have the option to display price or not as an admin option per product so added the extra db field and the form code in the product admin and "if" code around the price button block in the product info template to not create the price button items at all, so no css needed.

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

6 May 2015, 11:11 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: remove add to cart for specific products

Kinda seems like the same thing as making a product a document type, though at that point don't have the flexibility of per product choices from the admin as offered above.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

7 May 2015, 12:56 AM
#8
divavocals avatar

divavocals

Totally Zenned

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

Re: remove add to cart for specific products

torvista:

Does that not just put "Call for Price" on the product?
I don't want them to call for price, or call at all!!If you are referring to the text that appears on the button and text link of a product flagged "Call for Price", then yes it puts "Call for Price" on the product. However, that "Call for Price" button and text link can be changed to have any text on it you would like.. What marking a product "Call for Price" does functionally however is to remove all the "Add to Cart" elements that allows one to purchase the product while still displaying the amount in stock if you allow the in stock quantities to display on your product info pages. The "Call for Price" text link and buttons link to the Contact Us page.. I suggested it since this sounded like the result the OP says he was after.
i want to advertise that i have them and the quantities

See: http://scrappintestsite(dot)crappinstuff(dot)com/sports-c-458/lacrosse-c-458_29/little-b-mini-dimensional-stickers-lacrosse-p-17065.html

torvista:

In my case the "product" is usually a generic description of a large group of similar products including how to select the right one etc. so I want price, add to cart, attribute, stock etc. all hidden as it not a real product at all.
I long ago re-did all the css around the Add to Cart button to get more control and thought the easiest way to hide the price block was using a p_xx.css file with a display:none.
Then when I had a few of these p_xx.css lying around I thought it would be neater/less messy to just have the option to display price or not as an admin option per product so added the extra db field and the form code in the product admin and "if" code around the price button block in the product info template to not create the price button items at all, so no css needed.Got it.. Thanks for responding..

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.