Post by Reptile » Sat Apr 29, 2023 10:54 pm

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?
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


User avatar
Active Member

Posts

Joined
Mon Jan 30, 2012 7:23 pm
Location - The Netherlands

Post by halfhope » Sat Apr 29, 2023 11:17 pm

Hi!

Just check oc_event table.

Also might be helpful viewtopic.php?t=227710&start=20#p839606

My FREE extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by Reptile » Sun Apr 30, 2023 12:04 am

halfhope wrote:
Sat Apr 29, 2023 11:17 pm
Hi!

Just check oc_event table.

Also might be helpful viewtopic.php?t=227710&start=20#p839606
Thanks for the article.
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


User avatar
Active Member

Posts

Joined
Mon Jan 30, 2012 7:23 pm
Location - The Netherlands

Post by halfhope » Sun Apr 30, 2023 2:40 am

like in opencart 3.x
catalog/view/extension/module/featured/before

My FREE extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by halfhope » Sun Apr 30, 2023 2:44 am

UPD: sorry.
catalog/controller/extension/opencart/module/featured/before

My FREE extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by Reptile » Sun Apr 30, 2023 2:23 pm

halfhope wrote:
Sun Apr 30, 2023 2:44 am
UPD: sorry.
catalog/controller/extension/opencart/module/featured/before
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


User avatar
Active Member

Posts

Joined
Mon Jan 30, 2012 7:23 pm
Location - The Netherlands
Who is online

Users browsing this forum: No registered users and 6 guests