I have a list of reviews with email id, how can I bulk import Product Reviews into Magento?
I have a list of reviews with email id, how can I bulk import Product Reviews into Magento?
@Vimal Kumar I am okay with code, but i have confusion with excel format, can i get excel format??
Reviews working now, how can i enable ratings also?
I need ratings also import by programmatically.
The below code okay with review how can i add rating values in CSV?
<?php require_once 'app/Mage.php'; // Load Mage Mage::app(); // Init Mage ini_set('memory_limit', '128M'); $fp = fopen('reviews.csv', 'r'); Mage::app()->setCurrentStore(1); //desired store id while($line = fgetcsv($fp)) { $review = Mage::getModel('review/review'); $review->setEntityPkValue($line[0]);//product id //a $review->setStatusId($line[1]); //b $review->setTitle($line[2]); //c $review->setDetail($line[3]); //d $review->setEntityId($line[4]); //e $review->setStoreId(Mage::app()->getStore()->getId()); $review->setStatusId($line[5]); //approved //f $review->setCustomerId($line[6]);//null is for administrator //g $review->setNickname($line[7]); //h $review->setReviewId($review->getId()); $review->setStores(array(Mage::app()->getStore()->getId())); $review->save(); $review->aggregate(); } ?>