How to get all shopping cart items and total in magento
Here, I will show you how you can get all shopping cart items and total in magento. Magento has a the feature to create rules in the Shopping Cart . fallow below steps. $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems(); foreach($items as $item) { echo 'Product ID: '.$item->getProductId().''; echo 'Product Name: '.$item->getName().''; echo 'Product Sku: '.$item->getSku().''; echo 'Product Quantity: '.$item->getQty().''; echo 'Product Price: '.$item->getPrice().''; if ($this->helper('tax')->displayCartPriceInclTax() || $this->helper('tax')->displayCartBothPrices()): $_incl = $this->helper('checkout')->getPriceInclTax($item); echo 'Product Price: '. $this->helper('checkout')->formatPrice($_inc...
Comments