I have a client that wants all of the new orders written to a particular file in a directory on the stores server, probably a .txt file. The file would contain shipping info and product id. He has a programmer that would be pulling this info off whatever directory I create and feeding it to the clients shipping dept. Any ideas on the best way to pull this off?
- You need pull information from database.
- Use PHP file function to write data in the server part.
The hard part for this is to decode options from extra field of order_detail table if you do need to export options. Otherwise, it is easy. I had done similar work, but it is exported to csv file.
Another thing to keep in mind is not to make this file accessible by everybody so you’ll have to password protect it…