Posts made in August, 2012

How to add custom links in Magento top links using XML?

If you want to add custom links in Magento at top links near accounts, wishlist, login or sign up, then follow the following step. You can do this by making a change in XML file. It may be page.xml or local.xml in your theme. Normally the path to that file looks like this: app/design/frontend/default/*your template folder*/layout/page.xml Find the name top.links in that XML and add the following line as a child to that node.  <action...

Read More

How to get all reviews and display their ratings in Magento

In Magento sometimes you may need to display all the approved reviews in a page with their ratings. Here is the code to get all reviews from review collection. $_reviews = Mage::getModel('review/review') ->getResourceCollection() ->addStoreFilter(Mage::app()->getStore()->getId()) ->addStatusFilter(Mage_Review_Model_Review::STATUS_APPROVED) ->setDateOrder() ->addRateVotes(); foreach($_reviews as $review){ // load...

Read More

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.