Skip to content

create module to generate csv

i want to Create an automatic CSV export which is sent by email every tuesday.
case
This export should contains every product sold the past week.
Each row should contains :

Product SKU / Product Name / Product Sold Price / Quantity Sold / Order datetime

So, for exemple, the CSV generated the monday 3rd October should contains all products sold from 26sept to 2oct included.