Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...

face2005

Новичок
  
  • Публикаций

    31
  • Зарегистрирован

  • Посещение

Все публикации пользователя face2005

  1. Добрый день! есть ли возможность что бы при регистрации пользователь выбрал группу или это админ делает? вот, например, при регистрации можно сделать выбор - партнер, обычный покупатель и т.д. ?
  2. блин, фигня какая-то влезла при копировании... пришлось убрать из tpl $heading_title; и $description; но теперь только по этому адресу работает http://ocstore-2.3.0.2.3/index.php?route=information/brushes/index без index страница не найдена title я так понимаю нужно как-то через скрипт добавить?
  3. пробовал, вырезает некоторые теги, form например... php режет
  4. все так как Вы писали https://gyazo.com/e1799965b46bf48c9baa26a108512050 и ошибка Fatal error: Class 'Controllerinformationbrushes' not found in D:\VirtualHost\OpenServer\domains\ocStore-2.3.0.2.3\system\storage\modification\system\engine\action.php on line 43
  5. когда делаю как в ранних версиях , то хавается <?php class ControllerInformationBrushes extends Controller { private $error = array(); public function index() { $this->load->language('information/information'); $this->document->setTitle($this->language->get('heading_title')); $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); $data['breadcrumbs'][] = array( 'text' => $this->language->get('heading_title'), 'href' => $this->url->link('information/brushes') ); $data['heading_title'] = $this->language->get('heading_title'); $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); $this->response->setOutput($this->load->view('information/brushes.tpl', $data)); } } но титл не видит
  6. а нигде больше обьявлять этот контроллер не нужно?
  7. ControllerInformationBrushes extends Controller вроде правильно...
  8. <?php class ControllerInformationBrushes extends Controller { public function test { exit(); } } Parse error: syntax error, unexpected '{', expecting '(' in D:\VirtualHost\OpenServer\domains\ocStore-2.3.0.2.3\catalog\controller\information\brushes.php on line 3
  9. то же самое... страница не найдена...
  10. Fatal error: Class 'Controllerinformationbrushes' not found in D:\VirtualHost\OpenServer\domains\ocStore-2.3.0.2.3\system\storage\modification\system\engine\action.php on line 43
  11. Добрый день, ребята! Версия ocStore 2.3.0.2.3 нужно внедрить свою форму на отдельную страницу, но так как вырезаются некоторые теги в редакторе, решил в макете напрямую прописать. Так вот при создании таковой страница не определяется. 1) В controller -- information скопировал information.php и создал brushes.php <?php class ControllerInformationBrushes extends Controller { public function index() { $this->load->language('information/brushes'); $this->load->model('catalog/information'); $data['breadcrumbs'] = array(); $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home') ); if (isset($this->request->get['information_id'])) { $information_id = (int)$this->request->get['information_id']; } else { $information_id = 0; } $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { if ($information_info['meta_title']) { $this->document->setTitle($information_info['meta_title']); } else { $this->document->setTitle($information_info['title']); } $this->document->setDescription($information_info['meta_description']); $this->document->setKeywords($information_info['meta_keyword']); $data['breadcrumbs'][] = array( 'text' => $information_info['title'], 'href' => $this->url->link('information/bruses', 'information_id=' . $information_id) ); if ($information_info['meta_h1']) { $data['heading_title'] = $information_info['meta_h1']; } else { $data['heading_title'] = $information_info['title']; } $data['button_continue'] = $this->language->get('button_continue'); $data['description'] = html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8'); $data['continue'] = $this->url->link('common/home'); $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); $this->response->setOutput($this->load->view('information/brushes', $data)); } else { $data['breadcrumbs'][] = array( 'text' => $this->language->get('text_error'), 'href' => $this->url->link('information/brushes', 'information_id=' . $information_id) ); $this->document->setTitle($this->language->get('text_error')); $data['heading_title'] = $this->language->get('text_error'); $data['text_error'] = $this->language->get('text_error'); $data['button_continue'] = $this->language->get('button_continue'); $data['continue'] = $this->url->link('common/home'); $this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . ' 404 Not Found'); $data['column_left'] = $this->load->controller('common/column_left'); $data['column_right'] = $this->load->controller('common/column_right'); $data['content_top'] = $this->load->controller('common/content_top'); $data['content_bottom'] = $this->load->controller('common/content_bottom'); $data['footer'] = $this->load->controller('common/footer'); $data['header'] = $this->load->controller('common/header'); $this->response->setOutput($this->load->view('error/not_found', $data)); } } public function agree() { $this->load->model('catalog/information'); if (isset($this->request->get['information_id'])) { $information_id = (int)$this->request->get['information_id']; } else { $information_id = 0; } $output = ''; $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { $output .= html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; } $this->response->setOutput($output); } } 2) view -- theme -- default -- template -- information скопировал information.tpl и создал brushes.tpl и теперь при переходе (локально стоит) http://ocstore-2.3.0.2.3/index.php?route=information/brushes пишет что не найдено.... что делаю не так? раньше как-то указывался шаблон в контроллере
  12. Добрый день! подскажите как реализовать обновление цены если есть только ( в Еxсel ) колонка кода товара и колонка цены? price.xlsx
  13. ну я бы так и написал что ищу чувака, который за бабки забацает..... и не на форуме... странный подход..
  14. Добрый день, ребята! при обновлении модификаторов вылезает ошибка Fatal error: Call to undefined method DOMElement::item() in /home/vodogrey/igadget.pro/www/admin/controller/extension/modification.php on line 199 подскажите в в чем беда?
  15. face2005

    языковая панель

    может есть какой-то мануал?
  16. face2005

    языковая панель

    я хочу стандартный вывести, а то то что есть не корректно работает, перекидывает на главную...
  17. face2005

    языковая панель

    два языка есть..
  18. Добрый день! хочу вывести панель переключение языков , но не хочет показываться... просто выводит.. <?php echo $language; ?> вставляю это в header.tpl http://pma1.by
  19. Добрый день! подскажите как загружать модуль на локальном сервере? или как настроить ftp для сайта локально...
  20. Добрый день! OpenCart 2.0.1/ подскажите как вывести подкатегории отдельной категории? в шаблоне выводится все категории с подкатегориями <?php echo $categories; ?> а мне нужно что бы я мог вывести списком только подкатегории отдельно взятой категории.. Подскажите как их вывести...
×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.