How to extend Basket/Standard.php
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 28
- Joined: 21 May 2019, 09:52
How to extend Basket/Standard.php
I want to customise
How should I add and use this file in my extension?
Please help.
Code: Select all
ext/ai-client-html/client/html/src/Client/Html/Basket/Standard/Standard.php
Please help.
Re: How to extend Basket/Standard.php
First, have a look if you can achieve what you need by implementing a decorator:
https://aimeos.org/docs/Developers/Html ... components
If not, create a new file in your own extension that extends from the standard class:
ext/myproject/client/html/src/Client/Html/Basket/Standard/Myproject.php
Overwrite the method you need to change and configure your new class so it will be used:
https://aimeos.org/docs/Configuration/C ... ndard/name
https://aimeos.org/docs/Developers/Html ... components
If not, create a new file in your own extension that extends from the standard class:
ext/myproject/client/html/src/Client/Html/Basket/Standard/Myproject.php
Overwrite the method you need to change and configure your new class so it will be used:
https://aimeos.org/docs/Configuration/C ... ndard/name
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star