Page 1 of 1

Using observers to modify original function

PostPosted: Fri Apr 21, 2017 9:58 am
by Davidhill
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

./cache/ is NOT writable.