Jump to content

View of orders for a given employee


Recommended Posts

Hello,

Attempts to limit the order list view for a given employee.

I managed to make a constraint for a given order status:

in the file: 

controllers/admin/AdminOrdersController.php

if($this->context->employee->id_profile == 6)
        {
            $this->_where .= ' AND os.id_order_state = 2';
            
        
        
           
        }

This works, but I'd like to do that for products as well

$this->_where .= ' AND id_product = 20';

but it doesn't work 😕

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...