How to extend Basket/Standard.php

Help for integrating the Laravel package
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!
Harpal Singh
Posts: 28
Joined: 21 May 2019, 09:52

How to extend Basket/Standard.php

Post by Harpal Singh » 06 Mar 2020, 07:29

I want to customise

Code: Select all

ext/ai-client-html/client/html/src/Client/Html/Basket/Standard/Standard.php
How should I add and use this file in my extension?

Please help.

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: How to extend Basket/Standard.php

Post by aimeos » 07 Mar 2020, 10:51

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply