[SOLVED] How to overwrite aimeos-laravel/src/Controller/CheckoutController.php in Extension?
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
[SOLVED] How to overwrite aimeos-laravel/src/Controller/CheckoutController.php in Extension?
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 with a customized version in my Aimeos extension? Any help would be appreciated. Thanks.
Code: Select all
vendor/aimeos/aimeos-laravel/src/Controller/CheckoutController.php
Last edited by alababdiy on 03 Nov 2023, 12:49, edited 1 time in total.
Re: How to overwrite aimeos-laravel/src/Controller/CheckoutController.php in Extension?
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
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, give us a star
If you like Aimeos, give us a star