Forums / Templates, Stylesheets, Page Layout / HELP? Can I remove the "Add To Cart Button" on certain products???

HELP? Can I remove the "Add To Cart Button" on certain products???

Views: 2,926

Results 1 to 12 of 12
11 Apr 2012, 5:56 PM
#1
kerrie avatar

kerrie

New Zenner

Join Date:
Sep 2007
Location:
Phoenix, Arizona
Posts:
15
Plugin Contributions:
0

HELP? Can I remove the "Add To Cart Button" on certain products???

We are starting to get some "items" not necessarily prodcuts for sale, that we want to showcase. We want to set these up like products to maintain consistancy of the site, but do not want people to think that they can buy them.

Is there a way to disable or remove the "Add To Cart Button" on these showcase products only?

Kerrie Mallory-Thompson
https://www.laserbits.com

11 Apr 2012, 6:14 PM
#2
haredo avatar

haredo

Totally Zenned

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

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

Set those up as call for price and then use the stylesheet.css to hide this button ...

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.

11 Apr 2012, 6:16 PM
#3
kerrie avatar

kerrie

New Zenner

Join Date:
Sep 2007
Location:
Phoenix, Arizona
Posts:
15
Plugin Contributions:
0

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

I am kind of in the same boat, but in my case, I need to be able to completely REMOVE the "add to cart" button, but only on a few products.

Using the CSS is a global change, correct? How would I do this on a per product basis? Is it possible?

Kerrie Mallory-Thompson
https://www.laserbits.com

11 Apr 2012, 6:26 PM
#4
haredo avatar

haredo

Totally Zenned

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

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

Looks like you will have to change the image to a blank images:

includes/ templates/ your template/ images/ call_for_prices.jpg

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.

11 Apr 2012, 6:35 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

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

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

You can create SPECIFIC STYLESHEETS for a product;s info page.

Let's say the product's ID is 244...

If you create a stylesheet called:

p_244.css

Then you can style that product's info page, and {display:none} declared for elements on the page will hide them away.

NOTE: this does NOT hide add-to-cart buttons on LISTING PAGES, just the INFO PAGE for that product, so you may have to disable add-to-cart on listing pages to show just the more info link.

20 years a Zencart User

11 Apr 2012, 7:02 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

Or better yet, just create them as Document-General products, instead of Product-General. (see the pulldown list next to the Add New Product button in your admin screen.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Apr 2012, 7:12 PM
#7
schoolboy avatar

schoolboy

Totally Zenned

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

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

DrByte:

Or better yet, just create them as Document-General products, instead of Product-General. (see the pulldown list next to the Add New Product button in your admin screen.)

Ah,,, of course... Irony is that we actually use this function for that very purpose on a few sites... (Wood for Trees syndrome).

20 years a Zencart User

12 Apr 2012, 4:27 PM
#8
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

I recently did this very thing:

http://www.prommart.com/index.php?main_page=product_info&cPath=174_135_136&products_id=6998

Every product/dress under my Referral Dresses category has the Add to Cart button removed. All other categories work as normal.

I did this in the english.php by removing the "Call for Price" text in two places, that shows on the page. I used an "edit find" to find the Call for Price in the english.php

Then, as I recall, I used the Easy Populate version that allows one to add fields. I added the Call for Price field (it's named something else for the db.) Then I downloaded then reuploaded the products I needed to re-set, setting them for Call for Price.

sph
https://www.prommart.com
https://www.fashion-mart.biz

Steve
prommart.com

13 Apr 2012, 2:58 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

Thanks for sharing your workaround.

But I respectfully submit that that's much more work than just creating the product as Document-General from the start. Using Document-General involves no special coding, no code/language alterations.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Apr 2012, 3:54 PM
#10
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

Thanks for the tip. My workaround was based only on what I know. After 6 years there is alot I still don't know about zencart. Like Document General, never yet looked in to what that is.

In my case, hundreds of dresses were already up which had to be changed over, and one of my Easy Populates was very handy for changing to Call for Price. I wonder if it could have changed them to Document General...had I know about that.

Steve
prommart.com

18 Dec 2016, 11:35 PM
#11
in2deep avatar

in2deep

Zen Follower

Join Date:
Jul 2011
Posts:
214
Plugin Contributions:
0

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

If it is setup as a Document - General you can no longer make a featured product or display it in specials... right? Am I missing something?

19 Dec 2016, 1:59 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: HELP? Can I remove the "Add To Cart Button" on certain products???

In2Deep:

If it is setup as a Document - General you can no longer make a featured product or display it in specials... right? Am I missing something?
The various product types: Product - General, Product - Music, Document - General, Document - Product, Product - Free Shipping, are in one way all the same thing, but offer the ability to display things slightly differently or in the case of free shipping to enable some other feature to always be true. Okay, so a music product has fields that a general product does not, but nothing requires you to use all of the fields that are made available. There is no specific reason that a general document (which could be modified via the admin to allow adding to the cart) should be automatically prevented from being added as a featured product or not displayed in specials, etc...

As to perhaps an EasyPopulate program offering the ability to change the products_type, EasyPopulate V4 offers that possibility. One reason to consider using the Document - General or other such product type that can be set to not permit adding the product to the cart is that the product is not yet considered available for sale, and then when it is the products_type is changed. Problem is that such a change requires a SQL command/database edit to happen. There is no today "make this product this products_type" switch or button. Its not complicated, but its not there. Further, a reason for it not being there is to minimize self inflicted problems. For example if the product was changed from a product - music to product - general, what happens to the "extra" data that was part of it being a music product when it changes to a general product?

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