Page 1 of 1

do aimeos-core changes in own distribution

Posted: 17 Aug 2017, 07:19
by pheeb
Hi aimeos!

I want to change the aimeos the ServiceUpdate.php file but I have an own distribution in Typo3 and wan't to know how I can change this file in there, because when I directly change it in the aimeos-core it will be lost in a update. Can you please help me?

here is the path to the ServiceUpdate.php file:
typo3conf/ext/aimeos/Resources/Libraries/aimeos/aimeos-core/lib/mshoplib/src/MShop/Plugin/Provider/Order/ServicesUpdate.php

thanks for helping!

Re: do aimeos-core changes in own distribution

Posted: 17 Aug 2017, 10:10
by aimeos
We will add the fix for the ServicesUpdate plugin to the Aimeos core so you will get it with the next update.

Generally speaking, if you want to overwrite a class in Aimeos create a new one, extend from the existing, overwrite the method you want to change and configure your new class (either via the factory config or like in this case by using the name of the new class instead of the existing in the plugin tab).