Forums / Setting Up Categories, Products, Attributes / Removing "Add to Cart" Quantity for Unique Products

Removing "Add to Cart" Quantity for Unique Products

Locked

Views: 7,844

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
11 May 2006, 11:23 PM
#1
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Removing "Add to Cart" Quantity for Unique Products

My client is selling porcelain dolls and they are all one-of-a-kind so I can't have more than 1 of the same doll added to cart. So having the "Add to cart" quantity box is really useless.

So I need to take it off and be able to only use the "add to cart" button. When the doll is in the cart the "add to cart" button should disappear, so they can't add more than one of those dolls to the cart.

Also a problem will arise when INSIDE the cart and the quantity box is still there to change the quantity and update it. I need to be able to remove/disable that too.

Is there perhaps a mod or an actual setting in the Admin to do that? I've been looking all day.

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

11 May 2006, 11:27 PM
#2
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

Oh my god it was too easy. I just set the product maximum to 1. shakes head please disregard my previous post...

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

11 May 2006, 11:29 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Removing "Add to Cart" Quantity for Unique Products

We do try to please ... :smile:

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!

11 May 2006, 11:33 PM
#4
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

Ah, just noticed, one of the problems wasn't fixed by that though. When the product is already in the cart the "add to cart" button is still displayed. It does give you an error in the cart when you try to add it again, but is there a way to remove it, using the admin? Or would I have to go play around with the code for that?

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

11 May 2006, 11:35 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Removing "Add to Cart" Quantity for Unique Products

The winner to the checkout gets the product ...

The product is not removed from inventory until the order is completed ...

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!

11 May 2006, 11:43 PM
#6
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

I think I should paraphrase it, it was a bit confusing. I meant that if Quantity in Cart = 1 then don't display "add to cart" for the same product, for the same client. Does that make sense? I'm pretty sure that can be done through the code but I'd rather not touch it if it can be edited through admin.

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

11 May 2006, 11:45 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Removing "Add to Cart" Quantity for Unique Products

Well ... what it does is if the customer tries to add another to the cart, it says no ...

The button is there, but they cannot increase the quantity on max 1

Do you ever have products with more than 1 available?

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!

11 May 2006, 11:50 PM
#8
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

No, all of the products are one-of-a-kind.

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

12 May 2006, 12:00 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Removing "Add to Cart" Quantity for Unique Products

There are quite a few switches in regard to how the shop works, but none based on turn off the Add to Cart based on "Cart content" ...

However, the same groovy switches that know to flip around based on settings involving stock or login etc. could have another tweak added in there for the give customer based on the existing code ...

While it would require a code change ... it may not quite be as bad as you think ... I just have to chew on this a bit as the buttons are smart ... and they do change based on conditions ...

I just have to think a bit on another condition that doesn't break everything else and totally destroy your shop ... :eek:

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!

12 May 2006, 12:21 AM
#10
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

Ok, thank you for your help, Linda! staring at the code :smile:

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

12 May 2006, 12:32 AM
#11
vera avatar

vera

New Zenner

Join Date:
Dec 2005
Location:
Wylie, Texas
Posts:
77
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

I think I got it! I mean it works, but I don't know if this will cause any problems in the future. Here's what I did:

In tpl_product_info_display.php

<?php if($display_qty != '')
{
	echo $display_qty;
	$display_button=null;
}
?>

<?php if ($display_button != '') 
{ ?>
<?php
  echo $display_qty;
  echo $display_button;
?>

<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>

Surprisingly enough it works (http://www.dollsbypolina.com/store/index.php?main_page=product_info&products_id=4)

I just added the top "if" and got rid of the $display_qty from the second "if."

My Portfolio

Life is a game. The plot sucks but the graphics are awesome.

12 May 2006, 1:47 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Removing "Add to Cart" Quantity for Unique Products

Thanks for the update and glad that this worked for you ... :smile:

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!

15 Jul 2008, 11:50 PM
#13
elliot613 avatar

elliot613

New Zenner

Join Date:
Jul 2008
Posts:
6
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

your code looks great but only works for the product details template.

i have a site where i list all my products with buy now buttons on one page

a multiple product listing template.

how do i change the buy now button once the item was placed in the cart.

i would either change it to the quantity # in cart like you did or even replace it with a simple button that says "product added to cart"
the point of changing it is obviously in the event the customer continues shopping he should not see the unique products that he has already placed in his cart still on the site.

checkout a page on my site for an example
http://www.abcgiftcards.com/store/index.php?main_page=index&cPath=1_66

**** EDITED *** Never ever post in a forum, email, newsletter etc. the zenid or zenAdminID or you will be doomed!!** :eek:

6 Aug 2008, 10:59 PM
#14
misticloudz avatar

misticloudz

New Zenner

Join Date:
Oct 2007
Posts:
52
Plugin Contributions:
0

Re: Removing "Add to Cart" Quantity for Unique Products

thank you so much for this... it was a lifesaver.

Tiffany Rose
Frozen Rose Design