Developer forum

Forum » Ecommerce - Standard features » Adding products to cart with stock < 1

Adding products to cart with stock < 1

Ólafur Einar Þorbergsson
Reply

Hi. I'm having problems when adding products to cart when stock is less than 1, even though the "never out of stock" field is checked.

The cart app is giving no indications of errors. The product simply doesn't get added. 

Could there be a setting that I'm overlooking? Or maybe some other suggestions?

 

Kind regards,

Ólafur


Replies

 
Ólafur Einar Þorbergsson
Reply

The solution is running on DW 9.13.4

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Ólafur

Are you using Units on some of these products? The stock for a given unit can also be marked as never out of stock:

I am looking into the code related to Never out of stock and there might be something not 100% ok in our end if not running in a live integrated environment - are you using live integration for stock validation or DW built in?

BR Nicolai

Votes for this answer: 1
 
Ólafur Einar Þorbergsson
Reply

Thanks for the reply. We're not using units on these products no. This is running in a live intergrated env and we are not using DW built in stock validation. To explain further, these are "on-demand" products, so they are generally not in stock.

I managed to find one that is in stock and that gets added to the cart without problems, so my thoughts were that something might not be 100% with the "never out of stock" field. Could there still be something off with the Never out of stock functionality? I'm pretty sure I've exhausted everything on my end and am stumped. I've checked all subscribers related to the cart, all settings I could find and so far, no dice.

Regards, Ólafur

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Yeah - Never out of stock does not work with these 2 settings:

If they are enabled, it seems like it is not possible to add a product to cart that has 0 in them - regardless of the NOS setting.

Also this setting on the cart app does not currently work with NOS setting:

I have created a task to look into NOS and stock status checks that might change the behavior related to NOS and stock checks.

Can you verify the above 3 settings and see if those should be set?

BR Nicolai

Votes for this answer: 1
 
Ólafur Einar Þorbergsson
Reply

Yes! That seems to be the problem. I had Only show products "that are in stock" checked in the General settings. Thank you!

Kind regards, Ólafur

 

You must be logged in to post in the forum