ARTICLE AD BOX
I am working on an OpenCart 4 extension that needs to listen for cart events, such as:
catalog/model/checkout/cart|add/after catalog/model/checkout/cart|update/after catalog/model/checkout/cart|remove/afterThe events are successfully created in oc_event during installation and appear with the correct trigger and action values. The action points to:
extension/reloadify/module/cart_activity_events|onCartAddAfterHowever, the event handler never fires. There is no logging, no controller execution and no errors. The cart model debug logs show that the add/update/remove functions run, but OpenCart never loads my controller for the event.
I already confirmed the following:
The action route resolves without errors when accessed manually
Cache cleared, modifications refreshed and extension reinstalled
Class and file names follow OpenCart 4 conventions
The event status is set to 1
The file exists in catalog/controller/extension/reloadify/module/
Yet OpenCart never calls the controller during any event trigger.
Question:
What are the correct requirements for OpenCart 4 to load a catalog controller for event actions, and what would prevent an event action from firing even when the event row exists and the trigger runs?
