Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2009
    Posts
    48
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: How to 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

  3. #3
    Join Date
    Aug 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: How to 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.

  4. #4
    Join Date
    Aug 2009
    Posts
    48
    Plugin Contributions
    0

    Default 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.
    20th Century Glass - Antique & Collectable Glass Store

  5. #5

    Default 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!

  6. #6

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

    hoping someone can help!

    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!

 

 

Similar Threads

  1. v151 Automatic Update of quantity in cart to available stock
    By amirshawn80 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jan 2013, 03:59 PM
  2. Auto update shopping cart
    By jewelsnpearls in forum Customization from the Admin
    Replies: 2
    Last Post: 20 Nov 2011, 03:34 PM
  3. quickbooks point of sale 9 and zen cart auto stock update possible?
    By Xbox Memberships in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 3 Sep 2011, 08:56 PM
  4. Auto Update Max Quantity Bug
    By numinix in forum Bug Reports
    Replies: 0
    Last Post: 3 Jun 2011, 05:47 AM
  5. adjust quantity for max qty order in shopping cart
    By peeceelee in forum Bug Reports
    Replies: 3
    Last Post: 22 Aug 2006, 10:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg