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

neon009

Newbie
  
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

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

neon009's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

1

Reputation

  1. Спасибо! Разобрался как сделать без модуля. Нужно найти в папке опенкарта все строки: => 5 и поменять (разумно) на нужное число!
  2. Здравствуйте форумчане! У меня проблема. Начал настраивать фильтр в опенкарте, все шло нормально, пока не обнаружил что в меню Filters отображаются только первый 5 фильтров! Была ли такая проблема у кого-то?
  3. Разобрался! Вот рабочий пример. Распаковываем в папку OpenCart. В админке в меню Extensions->Extensions устанавливаем модуль HelloWorld. Перегружаем страницу. и вот в конце менб с лева должно появится Example extension. Внимание! хоть и второй параметр в AddEvent по логике должен быть admin/view/template/common/column_left/before должно быть admin/view/common/column_left/before я так понял что это справедливо для всех view's. Пользуйтесь! helloworld.zip
  4. или скиньте приммер работающего сообщения. пожалуста!
  5. вот, короче, мой модуль с событием. как заставить его работать? helloworld.zip
  6. а почему trigger? ведь везде addEvent... может я не все понимаю... а можно про метод view подробнее. по какому пути можно посмотреть пример. пожалуста!
  7. Изучаю события в OpenCart. Столкнулся с проблемой: событие регестрируется, но событие не вызывается. В коде создаю модуль: (OpenCart/admin/controller/extension/module/helloworld.php) <?php class ControllerExtensionModuleHelloworld extends Controller { private $error = array(); public function index() { ... } protected function validate() {} public function install() { echo "instaledddddddddddddddddddddd"; $this->load->model('setting/setting'); $this->model_setting_setting->editSetting('module_helloworld', ['module_helloworld_status' => 1]); $this->load->model('setting/event'); //admin\view\template\common $this->model_setting_event->addEvent('my_event', 'admin/view/common/header/before', 'myevent/before_view'); } public function uninstall() { echo "uninstaled111111111111111111"; $this->load->model('setting/setting'); $this->model_setting_setting->deleteSetting('module_helloworld'); $this->load->model('setting/event'); $this->model_setting_event->deleteEventByCode('my_event'); } (OpenCart/catalog/controller/event/myevent.php) <?php class ControllerEventMyevent extends Controller { public function before_view($eventRoute, &$data) { $eventRoute = str_replace('common/header', 'mypage/page', $eventRoute); echo "hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh"; } } Обработчик не вызывется.'mypage/page' - валидный route Где я ошибся? помогите!
Guest
×
  • 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.