Zerocool12 Posted March 12, 2013 Share Posted March 12, 2013 Hello i want to know how to get the number of sales in the Database . in which table is that data ? Link to comment Share on other sites More sharing options...
Involic Posted March 13, 2013 Share Posted March 13, 2013 If you want to get number of orders in your PrestaShop store you can try to run following query: SELECT count(*) FROM ps_orders; And also you can extend this query with more information. For example get count of valid orders in current year. SELECT count(*) FROM ps_orders WHERE valid = 1 AND date_add >= '2013-01-01 0:0:0' Link to comment Share on other sites More sharing options...
vekia Posted March 13, 2013 Share Posted March 13, 2013 by sales you mean orders or product in sales? if second, ps_product table, "on_sale" column 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