If this is your first visit, check our documentation. To post, register or login.
Forums / Managing Customers and Orders / Can I get shopping cart to auto update stock quantity to max available

Can I get shopping cart to auto update stock quantity to max available

Locked

Started by waynestephens on 17 Dec 2009, 2:14 PM · Views: 3,234

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
17 Dec 2009, 2:14 PM
#1
waynestephens avatar

waynestephens

New Zenner

Join Date:
Aug 2009
Posts:
48
Plugin Contributions:
0

Can I get shopping cart to auto update stock quantity to max available

Hi all, firstly apologies if this has been answered elsewhere, I've searched high and low but haven't been able to find anything.

When someone enters a quantity above the currently available stock level, the shopping cart displays the following message:

Products marked with 1 are out of stock or there are not enough in stock to fill your order.
Please change the quantity of products marked with (1). Thank you

What I would very much like, is for the shopping cart to auto adjust the quantity the customer added, to the amount currently available, and then change the above message to inform the customer of the alterations.

I know how to change the message, I just don't know how to get the stock to update automatically.

Thanks in advance anyone who can help!

Wayne

20th Century Glass - Antique & Collectable Glass Store

17 Dec 2009, 2:20 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Can I get shopping cart to auto update stock quantity to max available

So if you have only 2 left in stock, and a customer enters 4 in the input field, that value will automatically change to 2 added to the cart and a message will show... eg:

"While you require 4 items, we currently have 2 in stock, so your shopping cart will contain 2 of these items..."

20 years a Zencart User

17 Dec 2009, 4:29 PM
#3
waynestephens avatar

waynestephens

New Zenner

Join Date:
Aug 2009
Posts:
48
Plugin Contributions:
0

Re: Can I get shopping cart to auto update stock quantity to max available

Hi schoolboy, yes exactly, thats what I'm looking for. Hope someone can help, it seems like an obvious function most carts would need.

20th Century Glass - Antique & Collectable Glass Store

23 Dec 2009, 2:54 PM
#4
waynestephens avatar

waynestephens

New Zenner

Join Date:
Aug 2009
Posts:
48
Plugin Contributions:
0

Re: Can I get shopping cart to auto update stock quantity to max available

I'm still hoping someone can solve this issue...maybe changing a bit of code somewhere to do the following:

if requested quantity > stock quantity {

cart quantity = stock quantity;

display message;

}

I have no idea which file or what code to use though, so would greatly appreciate some help. :smile:

20th Century Glass - Antique & Collectable Glass Store

17 Apr 2010, 10:51 AM
#5
pangeahandmade avatar

pangeahandmade

New Zenner

Join Date:
Apr 2010
Posts:
10
Plugin Contributions:
0

Re: Can I get shopping cart to auto update stock quantity to max available

ok, i'm reviving this, because i have sort of the same question---

i'm still in test mode & not live yet, and i did my first test order today on a product of mine that had a quantity of 3 & max order of 3.

i already have allow checkout>false,
BUT

after i placed the test order for qty:1 and checked the product page again, it correctly updated the 'in stock' quantity that displays to 2 instead of 3, but the max is still at 3. so this means that someone can add 3 of them to their cart even though only 2 are in stock.

i sell handmade jewelry that i have very limited quantities of, so when i have a 'in stock' number listed, that's usually exactly how many i have, and cannot reorder materials to make more.

I hoped maybe it would give me the "your quantity has been updated to reflect the 'in stock' amount" message when i tried to add 3 to my cart, but when i tested that and added 3 to my cart even though it says i have only 2 in stock, it let me add all 3 to my cart and had the correct total for 3 of that item

how do i make the max number auto-update the same way the 'in stock' number auto-updates when one is purchased?

this is baffling to me and i've not been able to find the answer anywhere in the forums or the FAQs.

just a reminder- i do already have my allow checkout set to false...

any help would be appreciated! thanks so much!


i have v1.3.8, if that helps.
(http://www.pangeahandmade.com/shop)

17 Apr 2010, 4:42 PM
#6
pangeahandmade avatar

pangeahandmade

New Zenner

Join Date:
Apr 2010
Posts:
10
Plugin Contributions:
0

Re: Can I get shopping cart to auto update stock quantity to max available

hoping someone can help! :cry:

my go live date is in 2 days, and i can't let this go live without fixing this feature. i'm at a total loss. still can't find any other answers on my own...

any help/suggestion/guess would be greatly appreciated! thanks!


i have v1.3.8, if that helps.
(http://www.pangeahandmade.com/shop)