Skip to Content
0
Jan 23, 2019 at 01:13 PM

Unapproved products in cart

128 Views

We are using a 6.3 version b2c. When a user adds products to cnd they are moved to unapproved status later on, when the user tries to access the cnd try to checkout, it is throwing a 404 error.

For this I made some changes by removing the unapproved products from the cart data wherever we are accessing the cartdata object. But while placing the order in placeorder method of SummaryCheckoutStepController.java, it is taking me back to the cart page and saying the product is removed and when I try to place order this time, it throws a null pointer.

Which is a better way to handle this scenario? How can I remove the unapproved products from cart when the user comes to the cart page and then after the order can be placed successfully?