1

I need to get all the products from my magento store, Which have

5 Star

reviews and rating.

2

Below code works for getting all products which has 5 star rating.

$_productCollection= Mage::getModel("catalog/product")->getCollection()->addAttributeToSelect("*")->joinField('rating_score', 
                   'review_entity_summary', 
                   'rating_summary', 
                   'entity_pk_value=entity_id', 
                   array('entity_type'=>1, 'store_id'=> Mage::app()->getStore()->getId(),'rating_summary'=> 100),
                   'right'
);
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.