Open Framework, Information Management Strategy & Collaborative Governance | Data & Social Methodology - MIKE2.0 Methodology
Members
Collapse Expand Close

To join, please contact us.

Improve MIKE 2.0
Collapse Expand Close
Need somewhere to start? How about the most wanted pages; or the pages we know need more work; or even the stub that somebody else has started, but hasn't been able to finish. Or create a ticket for any issues you have found.

Using observers to modify original function

Have a question on MIKE2.0? Ask away!

Using observers to modify original function

Postby Davidhill on Fri Apr 21, 2017 9:58 am

Hello,

I want to change the returned value of the get_products() functions from the shopping cart class. I am thinking on building something like an observer class and call the action on NOTIFIER_CART_GET_PRODUCTS_END notifier, I want to modify the returned value $products_array from the observer class so I don't mess up with the shopping cart class code directly.
Is this possible? If so, How do I accomplish this?please help.
Thanks.
I didn't find the right solution from the internet.
References: https://www.zen-cart.com/showthread.php ... l-function

Professional Intro video Pricing
Davidhill
 
Posts: 28
Joined: Fri Feb 17, 2017 8:38 am

Return to General MIKE2.0 Questions

Who is online

Users browsing this forum: No registered users and 1 guest

./cache/ is NOT writable.