There are repeated subcategories, for example:
Samsung - комплектующие
LG - комплектующие
those. in this case, the subcategories are repeated
when creating such subcategories, the seo url of which is komplektujushhie , an error is generated: Этот SEO keyword уже используется!
ocstore 2.3
In the file admin/controller/catalog/category.php , the part of the code responsible for the validation of the field in which the seo url - keyword is keyword is keyword , namely:

  if (utf8_strlen($this->request->post['keyword']) > 0) { $this->load->model('catalog/url_alias'); $url_alias_info = $this->model_catalog_url_alias->getUrlAlias($this->request->post['keyword']); if ($url_alias_info && isset($this->request->get['category_id']) && $url_alias_info['query'] != 'category_id=' . $this->request->get['category_id']) { $this->error['keyword'] = sprintf($this->language->get('error_keyword')); } if ($url_alias_info && !isset($this->request->get['category_id'])) { $this->error['keyword'] = sprintf($this->language->get('error_keyword')); } } 

Now the repeating subcategories are validated, but at the front end, when opening such a subcategory, for example /samsung/komplektujushhie , this page opens normally,
but if you open /lg/komplektujushhie , the url looks like this: /index.php?route=product/category&path=... , i.e. seo url does not work.
Tell me how to fix this problem, despite the fact that the subcategory of комплектующие in different categories can be at different levels of nesting

    1 answer 1

    In the standard opencard this can not be done. There all url are stored in one table and one Url can correspond only to one entity. In this case, the category. And when you save one category with this url, it overwrites the data of another. To do what you want, you need to redo the work of opencards with url. Npr stored in categories is url and remake the script, which by url searches for a category and vice versa forms url taking into account these changes.