Forums / Managing Customers and Orders / Substract product quantity when added to cart

Substract product quantity when added to cart

Locked

Started by orange_juice on 18 Mar 2010, 9:44 AM · Views: 1,022

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 Mar 2010, 9:44 AM
#1
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Substract product quantity when added to cart

Hallo, I am running on a fresh install of Zen Cart 1.3.8a building a store with products that are not available in quantities. Usually, there might be one or two.

If a customer adds one product in its basket, the quantity is not substracted from the product's page. This means that if another client simultaneously puts a product in its cart, at the end one of them will be disappointed.

Is there a way I could guarantee that everything existing in the basket will be available at the checkout?

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming

18 Mar 2010, 9:47 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,748
Plugin Contributions:
56

Re: Substract product quantity when added to cart

The system does this for you at each point throughout checkout, because at any point along the way a cart can be abandoned. Stock is only reduced at the very end of the process after a succesful checkout.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 Mar 2010, 10:03 AM
#3
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Re: Substract product quantity when added to cart

Thanx for the very promt reply.

What I want to avoid, is to have one client putting an existing product in its cart and then in the middle of the checkout to receive a message "the product is out of stock", just because someone else was a step ahead.

It would be fair, just as in a real store, when someone holds a product in his hand (although he might dump it somewhere until he reaches the cachier) noone else can buy it. (especially when the majority of products is in a limited number)

Is this something feasible?

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming

18 Mar 2010, 10:21 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Substract product quantity when added to cart

There are only two ways to subtract from stock, and neither is a perfect solution.

Zencart, along with every other cart I'm familiar with, subtracts the item when the checkout is complete. The drawback is that two people can have the single remaining item in their respective carts, and one will be disappointed.

The other way would be to subtract the item when it is placed in a cart. The downside to that is that someone could come to your site, login, place the last item in his cart, then leave, tying up that product for quite a while.

I think the standard Zencart method is the best compromise.

18 Mar 2010, 10:39 AM
#5
orange_juice avatar

orange_juice

Zen Follower

Join Date:
Apr 2009
Location:
Athens, Europe
Posts:
125
Plugin Contributions:
0

Re: Substract product quantity when added to cart

Indeed this seems not to be a bad choice.

I will give it a try and see what happens in real market activity with this issue.

At least I am aware of it and I will find a way to notify my custommers that all the products in low stock are served on a "be quick or be dead" basis! :P LOL :D

Kind regards,
orange_juice

http://www.dodeca.eu/
Zen Cart is simply Jamming