Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,511
    Plugin Contributions
    126

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

  3. #3
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

    Default 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
    Last edited by orange_juice; 18 Mar 2010 at 11:08 AM.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

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

  5. #5
    Join Date
    Apr 2009
    Location
    Athens, Europe
    Posts
    125
    Plugin Contributions
    0

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

    Kind regards,
    orange_juice

 

 

Similar Threads

  1. Replies: 5
    Last Post: 6 Sep 2013, 12:02 AM
  2. v150 Page layout when product added to cart
    By Dtrain in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2012, 07:06 AM
  3. text attribute price isn't added to overall price when product added to cart
    By grossd in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 13 Nov 2011, 07:44 PM
  4. Replies: 5
    Last Post: 21 May 2011, 04:16 PM
  5. Show message when product added to cart
    By Gomlers in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Sep 2010, 03:07 AM

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