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