Skip to content

Commit 53a3456

Browse files
authored
Update CategoryProcessor.php
1 parent ab5c07d commit 53a3456

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
@@ -114,6 +114,9 @@ protected function createCategory($name, $parentId)
114114
if (!($parentCategory = $this->getCategoryById($parentId))) {
115115
$parentCategory = $this->categoryFactory->create()->load($parentId);
116116
}
117+
118+
// Set StoreId to 0 to generate URL Keys global and prevent generating url rewrites just for default website
119+
$category->setStoreId(0);
117120
$category->setPath($parentCategory->getPath());
118121
$category->setParentId($parentId);
119122
$category->setName($this->unquoteDelimiter($name));

0 commit comments

Comments
 (0)