Export Order CSV on order completion
Developing an eCommerce site that needs to update a CSV file on our server when an order completes. This is to integrate with our accounting software.
I don't think there is a module that does this yet, although I've seen an XML version.
New to Drupal, but I understand I can use a hook to trigger an action. When an order completes can I just write a block of code that will create and export a CSV file of the order? If so, where do I find the hook, and where to I put the new code.
Any help appreciated.