If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / How to prevent duplicates of products added to cart?

How to prevent duplicates of products added to cart?

Started by timbreman on 31 Aug 2013, 7:18 AM · Views: 579

Results 1 to 5 of 5
31 Aug 2013, 7:18 AM
#1
timbreman avatar

timbreman

New Zenner

Join Date:
Apr 2011
Posts:
12
Plugin Contributions:
0

Post #1 by timbreman

I sell audio through my site and don't require duplicates of any one product to be added to the cart.
Currently if 1 product is added multiple times it only lists the product image once on the checkout page and gives a small indicator of the actual number at the top.

Is there a way to disable duplicates of products from being added to the cart?
This has happened several times. Luckily nobody has complained or mentioned anything and I'm certainly not complaining about the additional funds received but I could see this potentially being an issue at some point.

Thanks,

31 Aug 2013, 7:22 AM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

Have you tried setting the maximum to 1?
And/or check the radio-button to disable the quantity button so only 1 can be added. Combined with the maximum, might accomplish your goal.

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

31 Aug 2013, 7:45 AM
#3
timbreman avatar

timbreman

New Zenner

Join Date:
Apr 2011
Posts:
12
Plugin Contributions:
0

Post #3 by timbreman

DrByte:

Have you tried setting the maximum to 1?
And/or check the radio-button to disable the quantity button so only 1 can be added. Combined with the maximum, might accomplish your goal.

Those options sound like they might do it!
Where can I find these options in admin?

31 Aug 2013, 9:02 AM
#4
timbreman avatar

timbreman

New Zenner

Join Date:
Apr 2011
Posts:
12
Plugin Contributions:
0

Post #4 by timbreman

DrByte:

Have you tried setting the maximum to 1?
And/or check the radio-button to disable the quantity button so only 1 can be added. Combined with the maximum, might accomplish your goal.

I've looked through all the maximum options and don't see what you're referring to.
Also the only option I see for quantity is simply not displaying quantity. Quantity also only pertains to the number of products in stock not how many can be added to the cart.

31 Aug 2013, 9:09 AM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Post #5 by frank18

timbreman:

I've looked through all the maximum options and don't see what you're referring to.
Also the only option I see for quantity is simply not displaying quantity. Quantity also only pertains to the number of products in stock not how many can be added to the cart.

In admin navigate to the product(s) you want to limit. Open the products page and you will see this:

Product Qty Maximum: (default is set at 0)

Set this to 1 and Bob's your Uncle :smile:!

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.