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 further restrict based on the city:

 $this->_where .= ' AND os.id_order_state = 2' AND (a.`city` LIKE "Janniehaven%");

but it doesn't work 😕

Link to comment
Share on other sites

  • 4 weeks later...

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...