How to extend Controller Base file and add custom function
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!
How to extend Controller Base file and add custom function
Hello,
I am new to your package and I want to do some functionality with it by extending core features.
On create of subscription I want to do some update records on my database. I have found "createSubscriptions()" function inside
Now what I want is add my custom function at the end of this function. I didn't get proper documentation on how to do it. I also reviewed your document below link.
https://aimeos.org/docs/Developers/Cont ... processors
But do not get an idea of How to configure and use it. Where to configure it and how it will call my function. Can you please explain to me in detail as I don't find the proper configuration of it.
I am new to your package and I want to do some functionality with it by extending core features.
On create of subscription I want to do some update records on my database. I have found "createSubscriptions()" function inside
Code: Select all
ai-controller-frontend/controller/frontend/src/Controller/Frontend/Basket/Base.php
https://aimeos.org/docs/Developers/Cont ... processors
But do not get an idea of How to configure and use it. Where to configure it and how it will call my function. Can you please explain to me in detail as I don't find the proper configuration of it.
Re: How to extend Controller Base file and add custom functi
Configuration is explained here: laravel-package-f18/how-do-i-extend-and ... html#p7987
The job controller will loop over the configured subscription processors and execute their begin() method when you execute
You have to regularly execute the other job controllers in cronjobs too:
https://aimeos.org/docs/Laravel/Configure_cronjobs
The job controller will loop over the configured subscription processors and execute their begin() method when you execute
Code: Select all
./artisan aimeos:jobs subscription/process/begin
https://aimeos.org/docs/Laravel/Configure_cronjobs
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
Re: How to extend Controller Base file and add custom functi
Hello Aimeos,
Thanks for your kind reply.
I have searched in your package and found that on product purchase "createSubscriptions()" called which is located "ext/ai-controller-frontend/controller/frontend/src/Controller/Frontend/Basket/Base.php" so If I want to extend this file then how to configure in controller.php of extension.
If I extend it then will it automatically call my extension file??
Thanks for your kind reply.
I have searched in your package and found that on product purchase "createSubscriptions()" called which is located "ext/ai-controller-frontend/controller/frontend/src/Controller/Frontend/Basket/Base.php" so If I want to extend this file then how to configure in controller.php of extension.
If I extend it then will it automatically call my extension file??
Re: How to extend Controller Base file and add custom functi
No, that won't work. Please create a subscription processor and implement the begin() method to update the data you want.
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