Export to csv using crontab

  • Mark McCulligh
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #71783 by Mark McCulligh
Export to csv using crontab was created by Mark McCulligh
I have a question around the export to csv code. I am trying to setup/code a crontab that will run hourly on the server to export all the new, renewals or upgraded membership. I need to import this into a third-pary software.

Can you give me some tips on how to do this. What is the SQL SELECT I would need to join all the right tables to get all the membership? Similar to the export to csv feature. Even if you just tell me were the code for the export is and I will look at it as long as it is not to complex the follow.

Please Log in or Create an account to join the conversation.

More
8 years 6 months ago #71815 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Export to csv using crontab
Hi Mark

You can look at the file administrator/components/com_osmembership/controller/subscription.php, method export.

All the logic for the export is handled there and you can get the code you want to implement it

Regards,

Tuan

Please Log in or Create an account to join the conversation.