Magento restrict admin order grid by website for user

Posted on March 25, 2014

So this is a real quick and easy way to restrict all orders from a websites or store views in your magento for a selected user role. find this file in your magento install: /app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php i do recommend you copy and edit a version of this file over to your local code folder. now around line 59 find this line

and below add this code

change these parts to your requirments: USER_ROLE_HERE = the role name of your user permissions role ( in magento: System > Permissions > Roles ) STORE_ID_HERE = The Store ID of the store view…

Continue Reading