Rank: Newbie
Groups: Authorized User, Developers, Registered Joined: 1/31/2019(UTC) Posts: 4
|
Sorry if this has already been mentioned, but for plugins and custom code - you need to add a lot more events. Working a bit with other systems they all have hundreds of different events you can hook into so you don't have to change core code or override entire methods. It seems like you may have removed events instead of adding more. It's not always a bad thing to have to override, but it can be problematic. For example, if Plugin A wants to add a few lines of code right after Login, right now Plugin A has to override the entire method and now takes control of the method. If Plugin B comes along and also wants to add a few lines - it has to know Plugin A has control now and it most likely will not, so it will override and now take control - Plugin A functionality will now break. Easy way to get around this is a LoggedIn/LoggedOut plugins can hook into. There are other ways too like adding a Param in your classes that take an interface collection that our Plugins can add to and then you call in your classes so they inject their code...etc but at least more events would be very helpful Edited by user Friday, October 30, 2020 10:09:21 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 175
Thanks: 8 times Was thanked: 17 time(s) in 15 post(s)
|
Hi,
Thanks for the feedback, Yes having more event coverage will certainly help with plugin development. We are hoping to gradually improve the plugin framework and bring more events into the application.
Regards
|
|
|
|
Rank: Newbie
Groups: Authorized User, Developers, Registered Joined: 1/31/2019(UTC) Posts: 4
|
Excellent. A couple of areas I've run into - Login/Logout
Also CheckoutController
_CreditCardPaymentForm
if (checkOut) {
... We usually have multiple extensions that need to add code right here -- We need an event we can all hook into
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 175
Thanks: 8 times Was thanked: 17 time(s) in 15 post(s)
|
We added four new events in 9.0.4, those are Login, Logout, CheckingOut and CheckedOut.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close