we have created a Telesales role inside Magento with relevant permissions, and have assigned users (Telesales agents) against that role.

Now I am aware of the SO post Differentiating Backend vs. Frontend Purchases in Magento, but I need to find a way to show orders created by a specific backend user. Is this possible? I have also looked into the Advanced Reports extension from AheadWorks, but this doesn't seem to be a feature they support.


You can use this to find the admin orders created by a specific user

$order = Mage::getModel('sales/order')->getCollection()
       ->addFieldToFilter('remote_ip',array('null' => true)) // this will load all admin orders
       ->addFieldToFilter('customer_firstname',array('eq' => 'Joe')); // here you can also use customer_id/customer_email/customer_lastname..
echo "<pre>";print_r($order->getData());
| improve this answer | |
  • Thanks Manashvi. Wouldn't this still be looking at orders for a particular customer instead of a backend user? – maGz Jul 8 '15 at 5:45
  • There is no way to filter the order collection by admin user in particular – Manashvi Birla Jul 8 '15 at 5:52
  • @ManashviBirla magento.stackexchange.com/q/286442/57334 Any help thanks – zus Aug 24 '19 at 11:43

As Manashvi mentioned, there is no way to understand which specific user created an order. However, we have made use of IWD's Sales Rep Tracking extension which has fulfilled this requirement.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.