0

I have the product reviews working on one store. Ratings are showing up, review details appears fine. I have to show all the reviews on other store as well. So I created a shell script to set store.

$collection = Mage::getModel('review/review')->getCollection();
$storeIds = array(1,2);
foreach ($collection as $review)
{
    $review->setStores($storeIds)->save()->aggregate();
}

Now the reviews are showing up, but the ratings are not. Did I miss something on the code or I have to do this via admin?

2
  • Mate, I have the same question! Where did you put the code you created above? Commented Oct 7, 2017 at 4:16
  • 1
    I created a script to modify my products. The snippet above was added inside a foreach ($productCollection as $product) section of the script. Hope that helps :)
    – onyotzki
    Commented Oct 8, 2017 at 17:45

1 Answer 1

1

The code above is actually correct. It's the ratings settings. Rating for other stores is not enabled in the first place :D

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.