Nickovitshj Posted August 17, 2021 Share Posted August 17, 2021 select ps_order_history.id_order, ps_order_history.date_add, ps_order_state_lang.name from ps_order_history INNER JOIN ps_order_state_lang ON ps_order_history.id_order_state=ps_order_state_lang.id_order_state where id_lang = 1 order by id_order, date_add; I'd like to automatically export the .csv resulting from this SQL query. Can this only be done through a php script? If so, can anyone point me in the right direction regarding that? Kind regards, Nick Link to comment Share on other sites More sharing options...
Nickovitshj Posted August 17, 2021 Author Share Posted August 17, 2021 Thanks Crezzur, i'll be taking a look at this. Link to comment Share on other sites More sharing options...
Nickovitshj Posted August 17, 2021 Author Share Posted August 17, 2021 Works perfectly, his and sl are known PrestaShop shortcuts? Any idea by any chance how we could get this file sent as an attachment over mail? Regards, Nick Link to comment Share on other sites More sharing options...
Nickovitshj Posted August 17, 2021 Author Share Posted August 17, 2021 2 hours ago, Nickovitshj said: Works perfectly, his and sl are known PrestaShop shortcuts? Any idea by any chance how we could get this file sent as an attachment over mail? Regards, Nick Nevermind, I just noticed you set them as such. The question about the email remains though. 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