Oxbasket extend problem

I need to overwrite protected function _calcItemsPrice() for oxbasket which is already overwritten in another class. Now module is installed like this

oxbasket => mybasket/basketbsk&promotion/my_basket

In this way my module calcItemsPrice() is not working but if i reverse the install order then my module code is working and mybasket module code stops working and throws delivery cost error . what is the reason? Any help is appreciated.

Same problem is occurring for oxbasketitem also. When myclass is the first one in module install list then its returing myclass object and vice versa. Myclass has added three more property to each item which are inaccessible when myclass is 2nd on hierarchy list.What I think is only first class instance is created and that’s why functions of next class is not executed or inaccessible. How to solve it?

Hi mousumi,

would be interesting to see the code you wrote for both modules.

Regards

That problem is occurring with b2b module and mymodule. I have added one additional checking in protected function _calcItemsPrice() and that code is not executed due to this problem. Its always executed calcItemsPrice() in b2bbasket file. what is the reason?

Files are attached.

Always only the last module in the chain is executed, that’s why the parent method should be called explicitely in every method.