We are rewarding our admin users by how many orders the help customers with per day. So we would need to track which admins placed which orders, I think the easiest way would be to add admin userid into sales flat order table on magento.
How to get the userid of the user that placed an order inside Magento admin panel?
2k Views Asked by user1920187 At
1
There are 1 best solutions below
Related Questions in MAGENTO
- Magento custom block. Can't get block's file
- About HTTP_HOST & PHP_SELF
- getSummaryQty() is not working properly magento
- Magento adding configurable product to cart programmatically
- Magento with SSL + Varnish
- Magento returns 404 page randomly
- Highlight current link on navigation bar
- Redirect in CheckOut
- Merging Magento and Dreamweaver, Xampp
- Magento add grouped product to cart as a single item
- Rewrite inline css to work on smartphone
- Insert order into magento manually
- php script to fix text in magento
- Overriding product list in magento
- How to remove unassigned images from products in magento?
Related Questions in ADMIN
- Django Admin tables not displaying correctly
- How to do excel sheet like calculations in django Admin?
- Script that runs "reg add" as admin
- django admin view on site don't use get_absolute_url
- Is it possible to create a cmd script that prevents users from deleting a file located in the desktop?
- Batch - Check admin right, run as admin
- Sonata Admin: Prevent a persist for a specific condition
- Can't get access to configuration.php Joomla 2.5
- Sonata Admin: How to change the form redirect from inside the admin class
- Error in laravel 4
- Prestashop 1.6 create admin module
- How do you create a basic Wordpress admin pointer?
- Displaying table header even when there is no content? (django admin page)
- Creating second database/domain in OpenLDAP
- django admin view and edit only what the user has create
Related Questions in ENTERPRISE
- Deploy enterprise (in-house) application on windows phone without developer unlocking the phone?
- upgrade steps from DataStax Enterprise 4.6.1 TO DataStax Enterprise 4.7 with Cassandra 2.1
- Magento Overwrite in Adminhtml failing
- "no endpoint listening" WITH "no connection could be made because the target machine actively refused it"
- iOS transfer app from ad hoc to Enterprise on another account
- How do I make MS Enterprise Certificate Authority actually use a custom template?
- iOS Enterprise distribution - Steps?
- iOS Enterprise Program vs Volume Purchase Program
- convert numeric date into DATE in SAS Enterprise Guide
- Install new AET token via Company Hub
- Enterprise iOS app distribution outside of company
- magento skip payment method from checkout
- How to fix issue with Enterprise Account?
- Reuse an interaction in any sequence diagram in Enterprise Architect
- Enterprise architect addin not getting Loaded
Related Questions in ECOMMERCE-SALES
- Add products to sales quote in magento admin programmatically
- Automatic generate a sales order line for every sales order
- Magento: Not able to save data on multiple tables on DB
- How do I use Holt-Winters Seasonal Dampened Method to compute a two-month sales projection in PHP?
- Error while inserting/Editing Sales Orders with Items with \ char as part of the InventoryID
- Cant modify sales_email_order_items
- Magento Sales Order - Return items from only one SKU
- Add Delivery Date from the Product Custom Option to Sales Order Grid in magento
- Set DeliveryName and DeliveryAddress in a Sales Order (Header and Lines) AX 2012 r2
- can't work $itemObject->getProduct()->getName() in magento
- Magento order view button for id process
- Magento: How to limit a collection (sales/order) by a certain category?
- How to get the userid of the user that placed an order inside Magento admin panel?
- Magento - Adding New Column to Sales Order Grid Not Working
- getProductId from an order
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can do this by creating an Event-Observer type module on the
sales_order_save_afterevent, just make sure you enclose it in the<adminhtml>node instead of<global>, otherwise customers placing orders on the front-end of your website could trigger the observer function.In
Observer.phpyou can relate the two by:$observer->getEvent()->getOrder()->getId();//this fetches theentity_idvalue from thesales_flat_ordertableMage::getSingleton('admin/session')->getUser()->getUserId();//this fetches theuser_idvalue from theadmin_usertableAlternately, it does look like there is a module already available on MagentoConnect:
Administrator Who Placed The Order
It is a paid-for extension though, implementing the Event-Observer method seems simple enough.