Before/After event for library file functions #11624
Unanswered
punitkumar
asked this question in
Q&A
Replies: 2 comments 3 replies
-
it can be done by extending the class and replacing the cart class in the registry via the startup system |
Beta Was this translation helpful? Give feedback.
2 replies
-
If we we want the Cart class to be extendable that way, then this line should be changed: old: new: This way, any overridden methods can make a more meaningful use of the data array, without having to repeat whole DB queries again. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any way we can call events for library file functions, for example: library file cart.php function getProduct
Beta Was this translation helpful? Give feedback.
All reactions