Post by nickpapoutsis » Mon Oct 12, 2020 5:32 am

JNeuhoff wrote:
Fri Jul 24, 2020 6:00 pm
We do that all the time. OpenCart supports view/*/before and view/*/after events, in most cases the view/*/after handlers are the easiest to use, allowing you to modify the final DOM tree.
Can you give an example?

Let's say I want to add a single "<br>" somewhere.

Right now I can use ocmod to find the line above/below and insert my code. How will this work with events?

User avatar
Newbie

Posts

Joined
Mon Mar 25, 2019 7:49 am

Post by Julio Cesar C G » Thu Oct 22, 2020 8:53 pm

nickpapoutsis wrote:
Mon Oct 12, 2020 5:32 am
JNeuhoff wrote:
Fri Jul 24, 2020 6:00 pm
We do that all the time. OpenCart supports view/*/before and view/*/after events, in most cases the view/*/after handlers are the easiest to use, allowing you to modify the final DOM tree.
Can you give an example?

Let's say I want to add a single "<br>" somewhere.

Right now I can use ocmod to find the line above/below and insert my code. How will this work with events?
Here's an example but I haven't tested it to see if it works
https://stackoverflow.com/questions/486 ... ler-with-e

User avatar
New member

Posts

Joined
Tue Oct 19, 2010 12:36 am
Location - Brazil
Who is online

Users browsing this forum: No registered users and 10 guests