How to add a subtotal for separate products in mini-cart?
Question
I am using a slightly modified modern theme for my store. Most of my store is using a 3 column layout with a mini-cart in the right column. By default the products in the mini-cart have a thumbnail, product name, quantity and unit price:
What I would like to do add a separate subtotal for every product in the cart...something like in the picture:
Any help would be appreciated.
Regards
Solution
You need to get the row total of the item
Use the following code in your checkout/cart/sidebar/default.phtml
file to get the Row Total of the item.
Mage::helper('checkout')->formatPrice($_item->getRowTotal())
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange