cancel
Showing results for 
Search instead for 
Did you mean: 

How to know if the cart is modified?

Former Member
0 Kudos

Hi All

I want to know whether my cart is modified i.e; adding a product, increasing quantity. is there any ootb support to know whether the cart is modified or not. If not modified I don't want to perform any other logic so as to reduce the database hits.

Thanks In Advance!!

Accepted Solutions (0)

Answers (2)

Answers (2)

hamidshaikh_uk
Explorer
0 Kudos

Use de.hybris.platform.commercefacades.order.CartFacade#validateCartData to check the modification in cart

former_member387866
Active Contributor
0 Kudos

Hi Gopi,

You can use an interceptor to monitor this and avoid database load.
Reference: Interceptors Documentation.

Regards,
Luke