Hi everyone!
I started working with frontend in magento2 about 1.5 months ago, and now I was asked to add a feature to the website, which requires a bit of backend knowledge (module, events, file generation).
Here is my task: every time an order is placed, I have to save that orders data (in custom format) into an xml file, and store that file in /upload/orders folder
I planned on making a module with observer for an even that fires when order is placed, and then generating the file in that observer. But, how do I generate that file, and how to then store it? Any ideas? At least some sort of tips would be more than welcome.
I am in a bit over my head here, but Its how I also started with frontend, and its how i learned pretty quickly, so I really wanna finish this task.
Thank you so much!
-B