Page 1 of 1
Search found 7 matches
Re: OC 3.0.x Events System: How to modify twig template file?
thank you straightlight!! works perfectly both /before and /after. The str_replace to change $route needs to be coded in the /before frame to be effective. Thanks!!!!
- Fri Mar 04, 2022 4:05 pm
- Replies 38
- Views 31447
Re: OC 3.0.x Events System: How to modify twig template file?
Dear all, this is a very interesting topic, as I'm trying exactly to reach the same goal by events. What I need to achieve is to display some detailed instruction to customer at order checkout successfull completion, depending on the composition of customer's order. I do not won't to modify via OCMO...
Jump to post- Thu Mar 03, 2022 11:53 pm
- Replies 38
- Views 31447
Re: [SOLVED] Trigger events by restadmin calls
Thanks. @straightlight: frankly speaking, I think you could improve the documentation at https://github.com/opencart/opencart/wiki/Events-System
the topic is complex but indeed developpers can do a lot with events, once you learn to manage them.
- Wed Mar 02, 2022 4:31 am
- Replies 10
- Views 2847
[SOLVED] Trigger events by restadmin calls
Dear all. I finally found the solution!! exactly here: https://forum.opencart.com/viewtopic.php?t=224686#p824511. User https://forum.opencart.com/memberlist.php?mode=viewprofile&u=614071 faced exactly my problem and he finally found out: when dealing with events managed within the forefront offi...
Jump to post- Wed Mar 02, 2022 12:16 am
- Replies 10
- Views 2847
Re: Trigger events by restadmin calls
@Straightlight, thanks for supporting. I'll try to explain my goal. I've an application external to OC, which interacts with my OC instance in some circumstances. One of these is the event of a new customer registering to my application. If the registration is successfull, the new customer data are ...
Jump to post- Mon Feb 28, 2022 5:27 pm
- Replies 10
- Views 2847
Re: Trigger events by restadmin calls
Hi, thanks for your replies. @paulfeakins I know I could modify the behaviour by OCMOD, but I'm trying to avoid that using events (which I never used so far :-)). @straightlight, $eventRoute when the event is correctly triggered by adding a new user through admin panel gives:customer/customer/addCus...
Jump to post- Sun Feb 27, 2022 12:30 am
- Replies 10
- Views 2847
[SOLVED] Trigger events by restadmin calls
Hi there, I'm trying to intercept the creation of a new customer, commanded through restadmin API . Below is what I implemented (using events). The event handler works fine when I add a customer trhough admin client panel. But it is not triggered when the customer is generated via Rest API (as a mat...
Jump to post- Fri Feb 25, 2022 2:47 am
- Replies 10
- Views 2847
Search found 7 matches