Developer forum

Forum » Ecommerce - Standard features » Statistics of orders

Statistics of orders

Tomas Gomez
Reply

Hi,

we have a project with a final client and several sales agents. Each sales agent manages her own users, indepedent from the other agents. The final client and the agents need to read the statistics of orders in the Ecommerce module of the backend, but each agent must read only the statistics pertaining to her users, not the global statistics of all users.

Which is best way to do it? Could we modify the settings of the Ecommerce/Statistics/orders? or should we create new pages with this stats to filter the users of each agent?

Any advice will be greatly appreciated,
Tom


Replies

 
Nicolai Pedersen
Reply

Hi Tomas

The statistics reports in Ecommerce are customisable - so you can just create your own provider with some parameters required.

Attached find our buil-in that you can see examples from.

This approach requires that the reps can login to the backend and see the stats - they can see all stat reports. You can create a provider that limits them to see only their own revenue (but also use the other reports that shows all revenue)

An alternative way is to create the SQL that gives the wanted data and use the datalist module to publish it in the frontend on a page with login - that one can take the context from the user, i.e. the user id, to find this sales reps own data.

BR Nicolai

 
Tomas Gomez
Reply

Thanks, Nicolai, for your fast response.

The customization of the reports seems to be the best option, I'll take a look to your code. 

BR,
Tomas

 

You must be logged in to post in the forum