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

oklu

Новичок
  
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

oklu's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Яша турпотому что не принимает google_base , даже после исправления ошипотому чток. Пишет что файл пустот. Ссылку всивляю в Источник, включаю, после - ошибка валидации, Сервис временно недоступен, поэтому проверка ситуса обрилитки файла не удалась. Проверьте ситус позже. В иком русле. И это все после 3-х-часовой проверки. Что поможет опенкарту 1.5 ? Не осопотому что хочеться перегделывать google_base.
  2. Opencart 1.5.5.1.2 Сервер отдает 404 , но хотелось бы вывести шаблон not_found.tpl Как это сгделать? код not_found.php <?php class ControllerErrorNotFound extends Controller { public function index() { header("HTTP/1.1 404 Not Found"); $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . ' 404 Not Found'); exit; $this->language->load('error/not_found'); $this->document->setTitle($this->language->get('heading_title')); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); if (isset($this->request->get['route'])) { $data = $this->request->get; unset($data['_route_']); $route = $data['route']; unset($data['route']); $url = ''; if ($data) { $url = '&' . urldecode(http_build_query($data, '', '&')); } if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { $connection = 'SSL'; } else { $connection = 'NONSSL'; } $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link($route, $url, $connection), 'separator' => $this->language->get('text_separator') ); } $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['text_error'] = $this->language->get('text_error'); $this->data['button_continue'] = $this->language->get('button_continue'); $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found'); $this->data['continue'] = $this->url->link('common/home'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) { $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl'; } else { $this->template = 'default/template/error/not_found.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } } ?> Вывод системного оповеещёния:
  3. Opencart 1.5.5.1.2 Сервер отдает 404 , но хотелось бы вывести шаблон error/not_found.tpl код not_found.php <?php class ControllerErrorNotFound extends Controller { public function index() { header("HTTP/1.1 404 Not Found"); $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . ' 404 Not Found'); exit; $this->language->load('error/not_found'); $this->document->setTitle($this->language->get('heading_title')); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); if (isset($this->request->get['route'])) { $data = $this->request->get; unset($data['_route_']); $route = $data['route']; unset($data['route']); $url = ''; if ($data) { $url = '&' . urldecode(http_build_query($data, '', '&')); } if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { $connection = 'SSL'; } else { $connection = 'NONSSL'; } $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link($route, $url, $connection), 'separator' => $this->language->get('text_separator') ); } $this->data['heading_title'] = $this->language->get('heading_title'); $this->data['text_error'] = $this->language->get('text_error'); $this->data['button_continue'] = $this->language->get('button_continue'); $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found'); $this->data['continue'] = $this->url->link('common/home'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) { $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl'; } else { $this->template = 'default/template/error/not_found.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } } ?>
  4. Найгдены страницы-дубли с GET-параметрами Что згдесь добавить в Clean-param: ? Примеры: GET-параметр Примеры страниц Страницы без get-параметров path /index.php?route=product/product&path=19_383_384&product_id=5807 /index.php?route=product%2Fproduct&product_id=5807 manufacturer_ /bordovyy-gelevyy-krasitel-kreda-vr--10-g?manufacturer_id=143 /bordovyy-gelevyy-krasitel-kreda-vr--10-g?
×
×
  • 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.