Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit e2f89c8

Browse files
ulftietzegelanivishal
authored andcommitted
Update CategoryProcessor.php
1 parent 0f57a30 commit e2f89c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/CategoryProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ protected function createCategory($name, $parentId)
112112
if (!($parentCategory = $this->getCategoryById($parentId))) {
113113
$parentCategory = $this->categoryFactory->create()->load($parentId);
114114
}
115+
116+
// Set StoreId to 0 to generate URL Keys global and prevent generating url rewrites just for default website
117+
$category->setStoreId(0);
115118
$category->setPath($parentCategory->getPath());
116119
$category->setParentId($parentId);
117120
$category->setName($name);

0 commit comments

Comments
 (0)