0

Can anybody describe, how library events work in Opencart 4.0.1.1. I tried to find information in official git repository, but there not enough info.

I tried add event data and write in log route and data info:

$this->model_setting_event->addEvent([
                'code' => "module_check_cart_event_cart_library",
                'description' => 'The cart library event',
                'trigger' => "library/cart/cart|getProducts/after",
                'action' => "catalog/controller/extension/oc_module_check_cart/module/module_check_cart|eventCartLibrary",
                'status' => 1,
                'sort_order' => 1
            ]);

But always in eventCartLibrary function I get empty data and route. May be I wrote incorrect trigger for library ?

0 Answers0