• Resolved apagoa

    (@apagoa)


    Hi, We are working to integrate Wooommerce with a software called Acctivate. We have several Sales Rep. with admin accounts in our store.

    In WooCommerce, Sales Reps place orders on behalf of the customer using the “Switch To” option. We are hoping that WooCommerce stores the WooCommerce User Account for the Rep who placed the order. Do you know if that’s an available field? If so, is there any way we can include it and make it visibly available per Order so that we can map it with Acctivate?

    For example, X places orders under the “Admin” WooCommerce User Account and uses the “Switch To” option to place orders on behalf of a Customer. When the order is placed, it’s for that specific Customer, but is there anywhere that lets us know which WooCommerce User account created it? We would like to see “Admin” associated with the Order. Can that field be included in the Orders API response?

    We’re looking for an automated process so that Sales Reps/Orders can be tracked.

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Yes this information is available from the current_user_switched() function in the plugin, details of which are here, but if you want this information to be stored against a WooCommerce order and made visible somewhere in the admin area then you’ll need to do a bit of development work to do that. If you’re not a developer yourself or don’t have a developer to hand, I usually recommend codeable.io for finding freelance WordPress devs.

Viewing 1 replies (of 1 total)
  • The topic ‘how to get WooCommerce User Account for the sales Rep. who placed the order’ is closed to new replies.