Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » CartCmd=UpdateOrderlines cleares the cart

CartCmd=UpdateOrderlines cleares the cart

Peter Leleulya
Reply

Has there been a change in cart commands in Dynamicweb 9?
http://mydomain.com/cart?OrderContext=MyOrderContext&CartCmd=UpdateOrderlines&QuantityOrderLineOL15=6 empties my cart and I have no idea why ...


Replies

 
Nicolai Pedersen
Reply

Could it be that the product is out of stock? Or not enough in stock?

 
Peter Leleulya
Reply

Hi Nicolai,

Yes, that can be the case ...
But that is intended ...
We need to show the stock, so we do use that product property.
But out of stock or restricted stock should not be a holdback to order as many of that product as you like.

I've been looking around for a checkbox, but could only find a checkbox in advanced ecom settings for excluding product which are not in stock.
That option is set to false in my case.

What should I do to be able to order as many products as I like despite the stock value?
Because my cart getting emptied is not what I want and not what I would expect.
When I have multiple order lines is removes them all, not just the one that exceeds its stock value ...

Hope to hear from you soon.
With kind regards.

 
Nicolai Pedersen
Reply

Hi Peter

On the cart module on the page you have a checkbox that enables stock checks. The ones in MC/Settings only handles if products should be shown or not. If you change the product type from Stock product to service, stock levels are not handled at all.

BR Nicolai

 
Peter Leleulya
Reply

Hmm product type change doesn't feel like a good solution ...
If you mean the field validation checkbox "A check for stock status" in the cart module, that is unchecked.

 
Peter Leleulya
Reply

Unfortunately changing the product type to service, it doesn't take its weight in account on order level. :(

 
Nicolai Pedersen
Reply

Hi Peter

If you do not have have the /Globalsettings/Ecom/Product/DontShowProductIfNotOnStock set to true, Dynamicweb does not check stock. Also see dump...

How is your stock reserve setup?

I can easily add products to cart in my solution even if they are not in stock... Any custom on your solution? A priceprovider that happens to set price to 0?

NP

Capture.PNG Capture2.PNG

 

You must be logged in to post in the forum