Results 1 to 8 of 8
  1. #1
    Join Date
    May 2015
    Location
    Manteca. California
    Posts
    10
    Plugin Contributions
    0

    help question 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?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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: v1.5.5]
    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. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: remove add to cart for specific products

    Quote Originally Posted by TheGunStoreGuy View Post
    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.

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default 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: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: remove add to cart for specific products

    Quote Originally Posted by torvista View Post
    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. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default 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: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  7. #7
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default 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...

  8. #8
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: remove add to cart for specific products

    Quote Originally Posted by torvista View Post
    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)crappins...e-p-17065.html

    Quote Originally Posted by torvista View Post
    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..
    Last edited by DivaVocals; 7 May 2015 at 02:00 AM.
    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.

 

 

Similar Threads

  1. v138a COD for specific products and for specific Zip Codes
    By hc1501 in forum Addon Payment Modules
    Replies: 0
    Last Post: 29 May 2014, 12:54 PM
  2. Replies: 4
    Last Post: 23 Feb 2014, 09:39 PM
  3. Replies: 13
    Last Post: 21 Feb 2013, 03:52 PM
  4. Replies: 3
    Last Post: 18 Jan 2009, 09:57 PM
  5. How to disable add to cart on specific products (gallery?)
    By momopopo in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 15 Jul 2006, 04:43 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR