I'm almost done with my first event system extension.
Only I still don't really understand how some paths works.
For example I'm trying to modify something on the main admin dashboard.
These files are located in the extension folder.
I can't figure out what the trigger path is to: extension/opencart/admin/view/template/dashboard/recent_info
Is there some documentation somewhere on how paths are build up in some cases like trigger/ controller/ model?
Only I still don't really understand how some paths works.
For example I'm trying to modify something on the main admin dashboard.
These files are located in the extension folder.
I can't figure out what the trigger path is to: extension/opencart/admin/view/template/dashboard/recent_info
Is there some documentation somewhere on how paths are build up in some cases like trigger/ controller/ model?
Last edited by Reptile on Sun Apr 30, 2023 2:24 pm, edited 1 time in total.
All my extensions: Click here or Click here
My FREE extensions in marketplace. [ security | flexibility | speedup ]
Thanks for the article.halfhope wrote: ↑Sat Apr 29, 2023 11:17 pmHi!
Just check oc_event table.
Also might be helpful viewtopic.php?t=227710&start=20#p839606
I've already checked the event table but almost all references are to models.
But I still can't find an answer to my question.
The paths to catalog and admin are clear to me.
But how to target files in the extension folder?
All my extensions: Click here or Click here
like in opencart 3.x
catalog/view/extension/module/featured/before
catalog/view/extension/module/featured/before
My FREE extensions in marketplace. [ security | flexibility | speedup ]
UPD: sorry.
catalog/controller/extension/opencart/module/featured/before
catalog/controller/extension/opencart/module/featured/before
My FREE extensions in marketplace. [ security | flexibility | speedup ]
Yes thanks!
That helped.
The path I used is:
Code: Select all
admin/view/extension/opencart/dashboard/recent_info/after
All my extensions: Click here or Click here
Who is online
Users browsing this forum: No registered users and 6 guests