je tente par la circulation augmenter le commentaire des données, a le code suivantquestion Magento? Comment boucle ajouter des avis dans le tableau?
$i=1;
while($i<=2){
$review->setEntityId($review->getEntityIdByCode(Mage_Review_Model_Review::ENTITY_PRODUCT_CODE))
->setEntityPkValue($product->getId())
->setStatusId(Mage_Review_Model_Review::STATUS_APPROVED)
->setCustomerId(Mage::getSingleton('customer/session')->getCustomerId())
->setStoreId(Mage::app()->getStore()->getId())
->setStores(array(Mage::app()->getStore()->getId()))
->save();
$i++;
}
Le résultat ne rejoint une donnée, n'a pas mon anticipé deux