Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Производители - Запрашиваемая страница не найдена!


 Share

Recommended Posts

При выборе производителя с карточки товра или со страницы производителей ошибка

Запрашиваемая страница не найдена!

Версия 1.5.3.1  установлен seopro и SEO Manager.

 

Спасибо.

Link to comment
Share on other sites


ищите файл seo_pro.php и замените строчку 

$this->request->get['route'] = 'product/manufacturer/product';

на 

$this->request->get['route'] = 'product/manufacturer/info';
  • +1 2
Link to comment
Share on other sites


} else {
                $this->request->get['route'] = 'error/not_found';
            }
                                
            if (isset($this->request->get['product_id'])) {
                $this->request->get['route'] = 'product/product';
                if (!isset($this->request->get['path'])) {
                    $path = $this->getPathByProduct($this->request->get['product_id']);
                    if ($path) $this->request->get['path'] = $path;
                }
            } elseif (isset($this->request->get['path'])) {
                $this->request->get['route'] = 'product/category';
            } elseif (isset($this->request->get['manufacturer_id'])) {
                $this->request->get['route'] = 'product/manufacturer/info';
            } elseif (isset($this->request->get['information_id'])) {
                $this->request->get['route'] = 'information/information';

 

Делал, не помогло.

Link to comment
Share on other sites


  • 2 months later...

сколько раз сталкивался - там только два варианта, или $this->request->get['route'] = 'product/manufacturer/info'; 

или $this->request->get['route'] = 'product/manufacturer/product';

Link to comment
Share on other sites


Удалил 241 строку. Заработало , но над каждым товаром выводится сообщение об ошибке.

 

Undefined index: allowed_buy in /vqmod/vqcache/vq2-catalog_view_theme_default_template_product_manufacturer_info.tpl on line 63 Notice:
Undefined variable: text_waiting in /vqmod/vqcache/vq2-catalog_view_theme_default_template_product_manufacturer_info.tpl on line 67
 
 
Чем я больше редактирую vqmod-кеш тем больше ошибок лезет.
Link to comment
Share on other sites


Проблема , решена! Спасибо Einshtein , Pascha.

на здоровье 

На будущее - vqcache не нужно редактировать, нужно редактировать основные файлы.

И будьте любезны на будущее - делитесь решением

  • +1 1
Link to comment
Share on other sites


  • 2 weeks later...
  • 2 weeks later...

В каталоге catalog\controller\common

В фаиле seo_pro.php

Найти строку 
 

$this->request->get['route'] = 'product/manufacturer/product';

И заменить ее на
 

$this->request->get['route'] = 'product/manufacturer/info';

Спасибо Einshtein, я просто разжевал и в рот положил.

  • +1 3
Link to comment
Share on other sites


  • 2 weeks later...
  • 1 month later...

Столкнулся с следующей сложностью.

в категориях если вставлять в SEO URL  одинаковое значение как в производителях  - то на сайте , нажимая на данную категорию - появляется Запрашиваемая страница не найдена!

как исправить сей баг ?

благодарю.

товары заливались импортером от karapuza

 

у меня  стоит - $this->request->get['route'] = 'product/manufacturer/info';

Link to comment
Share on other sites


  • 2 weeks later...

*решено*

 

у меня такая проблема появилась после обновления движка. Раньше ссылки на производителя выглядели так

http://*****.ru/index.php?route=product/manufacturer/product&manufacturer_id=16

 

а после обновления так

http://*****.ru/index.php?route=product/manufacturer/info&manufacturer_id=16

 

естественно, старые ссылки перестали быть рабочими

 

нужно было просто выгрузить базу и заменить автозаменой 

product/manufacturer/product на product/manufacturer/info и все заработало

Link to comment
Share on other sites


Перерыл весь форум, но ответа так и не нашел. Свои попытки были, но тоже без успеха.

 

Opencart 1.5.3.1 , Seo Pro включен.

 

Всё, хорошо, но никак не могу ЧПУ прописать ссылке на список производителей

http://сайт.ru/index.php?route=product/manufacturer

Если самому производителю дать СЕО имя - то он нормально показывается. Товары, новости, категории, корзина - всё работает через ЧПУ, а product/manufacturer нет.

 

Может знаете, как это правильно прописать?

Link to comment
Share on other sites


Спасибо, Паша!

А куда данную строку вставить в контроллер? Если просто вставляю после class ControllerCommonSeoPro extends Controller - ругается

syntax error, unexpected T_STRING
Link to comment
Share on other sites


Спасибо, кэп! Не знал, что в БД есть такая таблица. Всё работает, у меня было без префикса. Единственное, кто будет повторять - если не работает, зайдите в systems/ и удалите весь кэш.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.