papagino Posted October 22, 2013 Share Posted October 22, 2013 Hi, My Sales and orders stats are no longer adding my new sales in stats in the backoffice and also not on the "Statistics / This week's sales" window since I upgraded PrestaShop from 1.5.3 to 1.5.6. I don’t want my customers to access the online invoices because I always sent out official invoices created by accounting software with the shipment. For this reason, I opt to disable invoices under Orders/Invoices of my backoffice. I am not sure why the sales stats stop working with P.S. version 1.5.6 as I did not change anything in my settings with the upgrade. My guess is that PrestaShop uses the field “invoice_date” from the database table “pr_orders” to generate the report for Sales Stats. The “invoice_date” field has 0000-00-00 00:00:00 in it since the upgrade. Why? Anyway, would there be a way to modify the statssales module so it would be the field “date_add” instead of “invoice_date” that would be use to generate the Sales Stats? Please advice what to change and in what files… Cheers Dan Link to comment Share on other sites More sharing options...
Christiaan_01 Posted December 27, 2013 Share Posted December 27, 2013 Hi, It's simple. Just open statssales.php in the statssales module. (It's best to open with Notepad++) Simply replace all invoice_date by date_add. Link to comment Share on other sites More sharing options...
papagino Posted December 30, 2013 Author Share Posted December 30, 2013 Thanks Christiaan_01... Works fine now. Cheers Link to comment Share on other sites More sharing options...
Recommended Posts