@@ -516,7 +516,7 @@ protected function initCategories()
516516 $ this ->categoriesWithRoots [$ rootCategoryName ] = [];
517517 }
518518
519- $ index = $ this ->implodeEscaped (' / ' , $ path );
519+ $ index = $ this ->implodeEscaped ($ this -> _scopeConfig -> getValue (Config:: XML_PATH_CATEGORY_PATH_SEPERATOR ) , $ path );
520520 $ this ->categoriesWithRoots [$ rootCategoryName ][$ index ] = [
521521 'entity_id ' => $ category ->getId (),
522522 CategoryModel::KEY_PATH => $ category ->getData (CategoryModel::KEY_PATH ),
@@ -557,7 +557,7 @@ protected function implodeEscaped($glue, array $array)
557557 foreach ($ array as $ value ) {
558558 $ newArray [] = str_replace ($ glue , '\\' . $ glue , $ value );
559559 }
560- return implode (' / ' , $ newArray );
560+ return implode ($ this -> _scopeConfig -> getValue (Config:: XML_PATH_CATEGORY_PATH_SEPERATOR ) , $ newArray );
561561 }
562562
563563 /**
@@ -805,8 +805,9 @@ protected function reindexUpdatedCategories($categoryId)
805805 if ($ storeId == 0 ) {
806806 continue ;
807807 }
808+
808809 $ category = $ this ->categoryRepository ->get ($ categoryId , $ storeId );
809- //$category->setStoreId($storeId);
810+
810811 $ urlRewrites = $ this ->categoryUrlRewriteGenerator ->generate ($ category , true );
811812 $ this ->urlPersist ->replace ($ urlRewrites );
812813 }
@@ -1052,7 +1053,7 @@ protected function getCategoryName($rowData)
10521053 return $ rowData [CategoryModel::KEY_NAME ];
10531054 }
10541055
1055- $ categoryParts = $ this ->explodeEscaped (' / ' , $ rowData [self ::COL_CATEGORY ]);
1056+ $ categoryParts = $ this ->explodeEscaped ($ this -> _scopeConfig -> getValue (Config:: XML_PATH_CATEGORY_PATH_SEPERATOR ) , $ rowData [self ::COL_CATEGORY ]);
10561057 return end ($ categoryParts );
10571058 }
10581059
@@ -1094,9 +1095,9 @@ protected function getParentCategory($rowData)
10941095 // if _category eq. name then we don't have parents
10951096 $ parent = false ;
10961097 } else {
1097- $ categoryParts = $ this ->explodeEscaped (' / ' , $ rowData [self ::COL_CATEGORY ]);
1098+ $ categoryParts = $ this ->explodeEscaped ($ this -> _scopeConfig -> getValue (Config:: XML_PATH_CATEGORY_PATH_SEPERATOR ) , $ rowData [self ::COL_CATEGORY ]);
10981099 array_pop ($ categoryParts );
1099- $ parent = $ this ->implodeEscaped (' / ' , $ categoryParts );
1100+ $ parent = $ this ->implodeEscaped ($ this -> _scopeConfig -> getValue (Config:: XML_PATH_CATEGORY_PATH_SEPERATOR ) , $ categoryParts );
11001101 }
11011102
11021103 if ($ parent ) {
0 commit comments