Jarred Mack Posted November 16, 2012 Share Posted November 16, 2012 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 More sharing options...
CartExpert.net Posted November 16, 2012 Share Posted November 16, 2012 Hi. You need to edit the _select, _join and/or _where properties of the AmindOrders.php file. Regards. Robin. The CartExpert Team 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