Developer forum

Forum » Development » Disable adding to cart more than in stock

Disable adding to cart more than in stock

Dmitrij Jazel
Reply

Hi Guys,

I am sure there where some discussions before, and that is something allot of people requested and had to get done.

And also, if I correctly remember, there is even a checkbox in DW that enforces this, but don't remember for sure.

 

Wanted to ask what would be the best way to enforce this pollicy, or any other suggestions on how to handle this one.

/Dmitrij


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Dmitrij

Take into consideration that there is a time gap between adding the product to cart and checking out. The product is still in stock until the cart becomes an order. If another user adds the product to stock in the meantime 2 is in the cart, but only one in stock. First user that checks out will get the product. DW operates with reserved stock because of this.

Take a look at this one: http://manual.dynamicweb-cms.com/Default.aspx?ID=7210

In your template you can make a check that if there are no products available (reserved or in stock), they cannot be added to the cart. Also on the cart settings you can make sure people do not checkout with products not in stock: http://manual.dynamicweb-cms.com/Default.aspx?ID=7190.

http://templates.dynamicweb.com/eCommerce/Dynamicweb-eCommerce-template-tags/Product-Catalog/Product-detail/EcomProduct-ReservedAmount.aspx

http://templates.dynamicweb.com/eCommerce/Dynamicweb-eCommerce-template-tags/Product-Catalog/Product-detail/EcomProduct-AvailableAmount.aspx

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum