[SOLVED] How to overwrite aimeos-laravel/src/Controller/CheckoutController.php in Extension?

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
alababdiy
Posts: 40
Joined: 30 Apr 2023, 12:46

[SOLVED] How to overwrite aimeos-laravel/src/Controller/CheckoutController.php in Extension?

Post by alababdiy » 01 Nov 2023, 09:10

I'm looking to customize the CheckoutController from Aimeos within my extension. I've found outdated forum topics with broken links to documentation. Can someone provide current steps or guidance on how to overwrite the CheckoutController located in

Code: Select all

vendor/aimeos/aimeos-laravel/src/Controller/CheckoutController.php
with a customized version in my Aimeos extension? Any help would be appreciated. Thanks.
Last edited by alababdiy on 03 Nov 2023, 12:49, edited 1 time in total.

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

Re: How to overwrite aimeos-laravel/src/Controller/CheckoutController.php in Extension?

Post by aimeos » 03 Nov 2023, 07:28

That's more a Laravel than an Aimeos question.

Create a new controller in your ./app/http/controller/ directory and copy the checkout route to the ./routes/web.php where you can replace the controller name:
https://github.com/aimeos/aimeos-larave ... #L227-L234
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star


Post Reply