cancel
Showing results for 
Search instead for 
Did you mean: 

Products are not added to the cart even having stock

Former Member
0 Kudos

Hi Experts,

I am facing a situation in my storefront when I add products to the cart, even having stock available the cart show "Quantity added 0" no matter how many items I add. This situation happens with all the items. I am using a B2B/B2C recipe in relese 6.7.

Please find attached the image.

I appreciate your suggestions.

geffchang
Active Contributor
0 Kudos

It says "Error occured while adding to Cart". Have you checked the stacktrace / logs?

Former Member
0 Kudos

Hi Geff,

Thanks for your reviewing. Please find attached the stacktrace log when I try to add the items into the cart. I am not a technicall guy so any helpful reference or documentation I´ll appreciate it. Thanks in advanced.

Accepted Solutions (1)

Accepted Solutions (1)

former_member620692
Active Contributor
0 Kudos

It is unusual but anything (even JavaScript, brower support etc.) can be the root cause and it can be found out only with the thorough analysis of the code, data and log in your hybris. Please clear the cookies in your browser, use a new browser window, use a modern browser e.g. chrome, check with a fresh cart etc.

If it's happening with a fresh installation using b2c_b2b_acc recipe, I suggest you re-install it (i.e. re-run install.bat - r b2c_b2b_acc initialize or ./install.sh -r b2c_b2b_acc initialize depending on your O/S as mentioned at https://help.hybris.com/1808/hcd/8c46c266866910149666a0fe4caeee4e.html). If you are working on a customized store, please check with the developers in your team if some kind of business logic (e.g. personalization, a check based on a certain quantity of items in stock pr cart etc.) has been implemented which is restricting the addition of new items in the cart.

Also, you can attach the log file from hybris/log/tomcat folder for analysis.

Former Member
0 Kudos

Thanks Arvind for your analysis, after several revision I decided to reinitialize the installation and now apparently is working fine.

former_member620692
Active Contributor
0 Kudos

You are most welcome.

Answers (0)