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
- file_get_contents(): file created in the system's temporary directory error in Magento
- Decrypting Magento 2 customer passwords using email for migration to Shopify
- Is it possible in magento multi store website to get all category of all the store with single api
- Venia pwa + magento 2 categories and products issue
- Magento Rest Api Recaptcha Validation Failed Error
- Credit card fields showing under PayPal Express Checkout
- Unable to create a Specific coupon code in magento using REST API
- Mutagen copy multiple times project (4 copy of the same project)
- Magento 2 , query insert/update statments not binding with '?' variables
- Warning: session_id(): Cannot change session id when session is active
- System.ServiceModel.CommunicationException on WCF Web Service
- [{message: "Cannot query field "route" on type "Query".", extensions: {category: "graphql"},…}]
- Data written to PVC using job pod is not available in main POD
- Magento Order and Product pagination
- Trying to Upgrade Magento from ver. 2.3.4 to ver. 2.4.6 and causing Composer installation error
Related Questions in ADMIN
- How to install an app with default admin privileges via Inno Tool (or some other setup tool)?
- execute cmd commands as admin with java code
- Change an exe file's compatibility settings with C#
- All of a sudden not working, using linked server to source getting "Communication link failure"
- login and registration page not jump to the dashboard after registration and login proces
- Use sidebar on specific pages
- Set Device Owner
- For versions of solr9 or later, the admin UI cannot be displayed
- How to get the mailbox statistics data for more than 70,000 shared mailboxes in bulk
- Creating a model through the admin panel inside the test
- Oops, looks like the page is lost. This is not a fault, just an accident that was not intentional
- Disable add of related record in Django admin
- Do Shell Script From Apple Script Requires Terminal To Have Full Disk Access - But It Already Has Full Disk Access
- Change programmatically the email for new order, cancelled order and failed order WooCommerce notifications
- How can I find out when the computer shuts down after executing the shutdown command?
Related Questions in ENTERPRISE
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Installation process of wso2 Enterprise integrator
- Implementing Kiosk Mode Without User Interaction or Rooting: Feasibility and Methods in Android
- Can't sign in with copilot extension in Visual Studio
- Shared applications in enterprise cloud architecture
- How to share data across applications that use different authorization systems
- Apple enterprise program
- Outlook 2016 Retrieve email attachments from enterprise vault
- Does Wear OS supports Android enterprise?
- How to pass encryption key inside the replica set pod using MongoDB Enterprise Kubernetes Operator
- How to add custom field on Enterprise reports
- Not getting durl property using Enterprise Vault Search API
- How to put values entered in a prompt into a table
- Enabling GDS Library at Database Level in Neo4j Enterprise Edition - "No procedure with name gds.version registered for this database instance"
- Accessing Neo4j Desktop from Browser in Enterprise Edition
Related Questions in ECOMMERCE-SALES
- Error while inserting/Editing Sales Orders with Items with \ char as part of the InventoryID
- Change titles in sales->orders page in admin panel mageno
- can't work $itemObject->getProduct()->getName() in magento
- Add products to sales quote in magento admin programmatically
- Cant modify sales_email_order_items
- Different modules for sales/invoice management in OpenERP (Odoo)
- Magento - Adding New Column to Sales Order Grid Not Working
- How to get the userid of the user that placed an order inside Magento admin panel?
- Magento: How to limit a collection (sales/order) by a certain category?
- Magento order view button for id process
- Set DeliveryName and DeliveryAddress in a Sales Order (Header and Lines) AX 2012 r2
- Magento Sales Order - Return items from only one SKU
- Add Delivery Date from the Product Custom Option to Sales Order Grid in magento
- How to rewrite or add custom tab to the sales order view?
- 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 # Hahtags
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.