L’export des produits est buguée sur la version 1.7.0.2 de Magento.
Voici une capture d’écran du message d’erreur obtenu depuis le BO.
Si on regarde dans le fichier de log pour voir ce qu’il se cache derriere ce message « No valid data sent » voici ce que l’on obtient:
exception ‘Exception’ with message ‘Notice: Undefined index: in /store/app/code/core/Mage/ImportExport/Model/Export/Entity/Product.php on line 539′
A la ligne 532 dans Product.php:
protected function _updateDataWithCategoryColumns(&$dataRow, &$rowCategories, $productId)
{
if (!isset($rowCategories[$productId])) {
return false;
}
$categoryId = array_shift($rowCategories[$productId]);
$dataRow[self::COL_ROOT_CATEGORY] = $this->_rootCategories[$categoryId];
if (isset($this->_categories[$categoryId])) {
$dataRow[self::COL_CATEGORY] = $this->_categories[$categoryId];
}
return true;
}
à remplacer par:
protected function _updateDataWithCategoryColumns(&$dataRow, &$rowCategories, $productId)
{
if (!isset($rowCategories[$productId]) or empty($rowCategories[$productId])) {
return false;
}
$categoryId = array_shift($rowCategories[$productId]);
$dataRow[self::COL_ROOT_CATEGORY] = $this->_rootCategories[$categoryId];
if (isset($this->_categories[$categoryId])) {
$dataRow[self::COL_CATEGORY] = $this->_categories[$categoryId];
}
return true;
}
Voila le problème est résolu.










