Currently browsing author

Magento Extension Store

Magento: Send Transactional Email

In Magento, Transactional Email Templates can be created from System -> Transactional Emails. This article shows how we can send transactional emails programmatically. There are few necessary things for any transactional email in Magento. They are:- Template ID = ID of your transactional email template Sender Name Sender Email Recepient …

Magento: How to get product rating and review?

Here is the code to get ratings and reviews for any particular product. /** * Getting reviews collection object */ $productId = $product->getId(); $reviews = Mage::getModel(‘review/review’) ->getResourceCollection() ->addStoreFilter(Mage::app()->getStore()->getId()) ->addEntityFilter(‘product’, $productId) ->addStatusFilter(Mage_Review_Model_Review::STATUS_APPROVED) ->setDateOrder() ->addRateVotes(); /** * Getting average of ratings/reviews */ $avg = 0; $ratings = array(); if (count($reviews) > 0) …