nevuz Posted December 11, 2022 Share Posted December 11, 2022 (edited) Hello. I made a module with a function that obtains a list of orders and I saved them in an array, then with 'fopen' and 'fputcsv' I generate the csv. It's working if I access the web but if I use mydomain.com/modules/mymodule/myphpfile.php it doesn't work, neither from cron (php mypathmodules/myphpfile.php). PS version: 1.7.* Thank you. Edited December 11, 2022 by nevuz (see edit history) Link to comment Share on other sites More sharing options...
ventura Posted December 11, 2022 Share Posted December 11, 2022 Check this https://devdocs.prestashop-project.org/1.7/modules/concepts/controllers/front-controllers/#using-a-front-controller-as-a-cron-task 1 Link to comment Share on other sites More sharing options...
nevuz Posted December 11, 2022 Author Share Posted December 11, 2022 4 hours ago, ventura said: Check this https://devdocs.prestashop-project.org/1.7/modules/concepts/controllers/front-controllers/#using-a-front-controller-as-a-cron-task thanks, it worked for me! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now