Jump to content

Restricting orders displayed


Jarred Mack

Recommended Posts

Hi,

 

I want to restrict which orders are displayed in the back-office based on who is logged in - specifically, I want to attach a login to a specific supplier, and only show orders in which they have products. I'm most of the way there, but I'm having trouble finding where the logic actually rests for populating the orders table - is this a straight select * dump somewhere, or is it in a foreach that I can add my condition to?

 

If someone could point me to where the logic for displaying the order list lives, I'd be very grateful! I'm searching in the AdminOrdersController at the moment but I can't figure out where it's coming from.

 

Thanks in advance.

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