Hi all,
I would like to override a function called _cart_update which is in the website_sale module. But I want to change the middle of the function (I want to do something in the middle of the function code). So I tried to rewrite the function in my custom module and add the website_sale module as a dependency module (I rewrite the function without adding any super() calls). My function gets the function call. No problem with that. But there are other modules that override the same function with super() calls. Sadly, those functions will not be executed. But I want them to be executed.
Is there any issue with my work? or is there any other way to do this?
Thank you.
@Jake Robinson
Thank you. Your way worked!!!. Can you provide more details on the first approach (Changing where the hook is) ? I couldn't understand what you were saying. Could you please provide an example of that??
(Sorry I don't have enough Karma to comment on your answer. :( )
Hello @Janath Manthila
Hope you are well.
I have the same concern. Can you please help me? If you got any solution.
Thanks