Page 1 of 1

Overriding Catalog/Base.php class with our own

Posted: 12 Sep 2017, 22:49
by bill
Hi

I am trying to override this file :

ext/ai-client-html/client/src/Client/Html/Catalog/Base.php

with in my own extension , is that possible? how do I do that in the config/shop.php file? I read the documentation and I didn't find how?

Please help

Thanks

Re: Overriding Catalog/Base.php class with our own

Posted: 13 Sep 2017, 08:40
by aimeos
Unfortunately, OOP doesn't allow to overwrite or replace abstract classes other classes extend from. You can only overwrite the methods in the base class in your own class that extends from it.