I was trying to get the information of the items in the cart and got it using the code below, the problem is that I need to get a lot of other information. And when giving a var_dump($cart), it showed the cart information. As in this example I saw on the internet, "$item->getProduct()" is used to get the elements. How can I give a var_dump() inside the $item variable to find out the values that are inside the item?
$cart = Mage::getModel('checkout/cart')->getQuote();
foreach ($cart->getAllItems() as $item) {
$productId = $item->getProduct()->getId();
$productPrice = $item->getProduct()->getPrice();
}