Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Hamster

Новичок
  
  • Posts

    1
  • Joined

  • Last visited

1 Follower

Hamster's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Когда вношу изменения в seo_url.php, вместо сайи получаю ошибку: Parse error: syntax error, unexpected T_PUBLIC in vqmodvqcachevq2-catalog_controller_common_seo_url.php on line 106 На этот строке находится следующий код: public function rewrite($link) { if ($this->config->get('config_seo_url')) { $url_data = parse_url(str_replace('&', '&', $link)); $url = ''; $data = array(); parse_str($url_data['query'], $data); foreach ($data as $key => $value) { if (isset($data['route'])) { [b] if (($data['route'] == 'product/product' && $key == 'product_id') || (($data['route'] == 'product/manufacturer/product' || $data['route'] == 'product/product') && $key == 'manufacturer_id') || ($data['route'] == 'information/news' && $key == 'news_id') || ($data['route'] == 'information/information' && $key == 'information_id')) {[/b] Видно, что ошибка возникает в функции, ггде согдержится измененный код, третья его часть. Но при этом ошибка исчезает после уднония вот этого кода: } elseif (isset($this->request->get['news_id'])) { $this->request->get['route'] = 'information/news'; При этом урл синовится ЧПУ-шным, но вида «http://site.ru/novost», и открывается не новость, и не страница ошибки, а главная страница сайи.
×
×
  • 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.