GetCartInfo Method

This method retrieves the number of root products present in the cart, and is called when items are added to or deleted from the cart.