Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 7 of 7

Thread: Updating Inventory Via WSI and Shopping Cart Behavior

  1. #1
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default Updating Inventory Via WSI and Shopping Cart Behavior

    We hire a 3rd party to do product inventory updates every night using WSI.

    This afternoon we received an order which contains items who's inventory number should have been updated overnight to show 0. Somehow they were still able to submit the order including items which were not in stock.

    When doing inventory updates via WSI, are existing customer shopping carts updated, are out of stock items removed, or is this ignored?

    Trying to figure out what is happening here.

    Thanks!
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  2. #2
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    You may have your AppConfig variables set to allow selling more than you have.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  3. #3
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default

    Inventory.LimitCartToQuantityOnHand is set to true. What other appconfigs should I look at?
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  4. #4
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    That would be the correct one. That will prevent things from being added to the cart. However, another check is not done once things are in the cart. Otherwise you can set ClearOldCartOnSignin to true.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  5. #5
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default

    A check not being done after items have been added to the cart would explain the behavior we're seeing. Any idea how difficult it would be to setup a stored procedure to run overnight that goes through customer carts and updates quantities? If it's a simple project I may consider looking into it but the problem we're facing isn't severe enough to warrant eating a huge chunk of time to fix.
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2

  6. #6
    cjbarth is offline Senior Member
    Join Date
    Oct 2008
    Posts
    392

    Default

    The problem you're likely to run into is from who's cart do the items get removed. It could very well be that multiple people have the same item in their cart and that item not longer has sufficient stock to satisfy all the orders in carts. So how do you decide who's cart should get modified? Do you partially modify a cart? If you find even one problem with a product do you empty the carts of everyone with that product in their cart? If you do that, then how to you explain the 'bug' of carts randomly emptying over night?

    You might be better off checking quantities when someone checks out, but then you start getting into modifying the checkout code. The checkout code is some of the craziest I've seen and I try to stay away from it whenever possible.
    ML9.3.1.1
    SQL 2012 Express
    VS 2010
    Azure VM

  7. #7
    donttryathome is offline Senior Member
    Join Date
    Apr 2009
    Posts
    171

    Default

    You're right, I can see how this wouldn't be a simple task. Best just to work through the problem orders as we get them.

    If you do that, then how to you explain the 'bug' of carts randomly emptying over night?
    We already have to try to explain the bug of carts randomly emptying over night. Our explanation: "We don't know and we can't find anyone else who knows why your cart emptied since the last time you logged in. Sorry." It's really quite frustrating. But, that's a different thread in itself.

    Thanks for your input!
    Running: AspDotNetStorefront ML 8.0.1.2/8.0.1.2