I'm using magento 1.7. I want export product reviews from magento. For that, I want to find the store and store view codes of the product review. I tried the below, But It does not work.

$review_store = Mage::getModel('review/review')->getStoreId();
$review_storviews = Mage::getModel('review/review')->getStores();

How to get the store and store view from product review object?

1 Answer 1


You need load a review before call getStoreId method, like this:

$storeId = Mage::getModel('review/review')->load(6)->getStoreId(); //6 is a Review ID.

If you have a review object already, you can do this:

$storeId = $review->getStoreId();
  • 1
    Nice! How I'm unaware about objects? It works! Thank you Sir.
    – SIBHI S
    Jun 27, 2014 at 7:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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