Hlabs93 Posted October 16, 2024 Share Posted October 16, 2024 Hello everyone, I am working on a multi-salesperson setup in my PrestaShop 8.2 store. I would like to restrict order visibility based on the salesperson. For example, Salesperson 1 should only be able to see the orders they created, and the same for Salesperson 2. This means that each salesperson should have access only to their own orders and should not be able to view the orders of others. Is there any module, configuration, or code customization that could help achieve this functionality? I would appreciate any guidance or suggestions! Thank you! Link to comment Share on other sites More sharing options...
JBW Posted October 16, 2024 Share Posted October 16, 2024 There are hooks thats allows to modify the order grid data or query: actionOrderGridDataModifier/actionOrderGridQueryBuilderModifier - it can be implemented in a module Link to comment Share on other sites More sharing options...
Hlabs93 Posted October 17, 2024 Author Share Posted October 17, 2024 Can you gave me more details about this ? And how can I implement it ? Thanks Link to comment Share on other sites More sharing options...
JBW Posted October 18, 2024 Share Posted October 18, 2024 https://devdocs.prestashop-project.org/8/modules/concepts/hooks/ Link to comment Share on other sites More sharing options...
Hlabs93 Posted October 19, 2024 Author Share Posted October 19, 2024 On 10/16/2024 at 10:19 PM, JBW said: There are hooks thats allows to modify the order grid data or query: actionOrderGridDataModifier/actionOrderGridQueryBuilderModifier - it can be implemented in a module I can't find any of these hooks in the back-office Link to comment Share on other sites More sharing options...
Nickz Posted October 19, 2024 Share Posted October 19, 2024 2 hours ago, Hlabs93 said: I can't find any of these hooks in the back-office ok over FTP you find the file 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