diff --git a/magmi/plugins/extra/itemprocessors/categories/categoryimport.php b/magmi/plugins/extra/itemprocessors/categories/categoryimport.php index 573f22af..0f3dc3ca 100644 --- a/magmi/plugins/extra/itemprocessors/categories/categoryimport.php +++ b/magmi/plugins/extra/itemprocessors/categories/categoryimport.php @@ -120,7 +120,7 @@ public function getCategoryId($parentpath, $cattrs) FROM $cet as cce LEFT JOIN $cet as eac ON eac.parent_id=cce.entity_id WHERE cce.entity_id=? - GROUP BY eac.parent_id"; + GROUP BY eac.parent_id,cce.entity_type_id,cce.attribute_set_id,level"; $info = $this->selectAll($sql, array($parentid)); $info = $info[0]; // insert new category @@ -469,4 +469,4 @@ public function afterImport() $this->update($sql); return true; } -} \ No newline at end of file +}