Developer forum

Forum » Ecommerce - Standard features » "A check for stock status" resets number of a product in orderline if above stock

"A check for stock status" resets number of a product in orderline if above stock

Marie Louise Veigert
Reply

Hi,

Im trying to configurate the cart to check on wether the number of a product added to cart is in stock. (Rapido solution)

I have set this on the Cart module:

 

And this on the Cart under settings:

 

If I have a product with 9 in stock and add 9 at first -> then add another one in the cart to 10, the cart just resets to 9 without any error message.

If I have added fx 4 and go to the cart and change it to 10, it will reset to 4.

Any suggestions to if Im missing a configuration somewhere?

 

BR Marie Louise


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Marie Louise

You need to add the validation error to the template.

If you add @DwtemplateTags() when you try this, you can see what the tag is called.

The loop is this:

https://doc.dynamicweb.com/template-tags/ecommerce/shopping-cart/receipt/validationerrors

 

You must be logged in to post in the forum