With this you will be able to do following things in Magento E-Commerce
To do these functionalities you need to add specific code at the right places to get the desired effect
With the following code you can get all Magento items information in the cart
$items = Mage::getModel('checkout/cart')->getQuote()->getAllItems(); $items = Mage::getSingleton('checkout/session')->getQuote()->getAllItems(); foreach($items as $item) { echo 'ID: '.$item->getProductId().'; echo 'Name: '.$item->getName().'; echo 'Sku: '.$item->getSku().'; echo 'Quantity: '.$item->getQunatity().'; echo 'Price: '.$item->getPrice().'; }
For showing all Total items and Quantity in Magento you can use the following below code to get the desired results.
$totalItems = Mage::getModel('checkout/cart')->getQuote()->getItemsCount(); $totalQuantity = Mage::getModel('checkout/cart')->getQuote()->getItemsQty();
With this code check how we can add subtotal and grand total of price to Magento cart respectively
$subTotal = Mage::getModel('checkout/cart')->getQuote()->getSubtotal(); $grandTotal = Mage::getModel('checkout/cart')->getQuote()->getGrandTotal();
Toys are not just for entertainment—they shape childhood, enhancing creativity, learning, and motor skills. Whether it’s a comforting silicone night…
Toys are more than just playthings; they are a gateway to imagination, learning, and childhood joy. Whether it's a soft…
Toys have always played a crucial role in childhood, fueling imagination, creativity, and learning. Whether you're looking for educational playsets,…
Toys are an essential part of childhood, shaping creativity, learning, and fun-filled memories. Whether it’s the soft embrace of plush…
Toys are a gateway to imagination, creativity, and learning. Whether it’s a child’s first plush toy, a set of engaging…
Toys are more than just playthings; they help children explore, learn, and develop essential life skills. From interactive sensory toys…