1. Documentation /
  2. User Switching for WooCommerce

User Switching for WooCommerce

Allow admins and store managers to act on behalf of customers in your WooCommerce store.

Installation

↑ Back to top
  1. Download the .zip file from your WooCommerce account.
  2. Go toWordPress Admin > Plugins > Add New and Upload Plugin the file you have downloaded.
  3. Install Now and Activate.

More information at Install and Activate Plugins/Extensions.

Setup and Configuration

↑ Back to top

Once the plugin has been activated the front-end user switching tool will be visible for logged in Administrators and Shop managers by default.

To change the default settings, go to: Settings > User Switching for WooCommerce.

Labels section

↑ Back to top

Here you can modify what’s displayed in the front-end user switcher.

  1. Pretending to be label – naming of the label used when you have switched to another user. Defaults to Pretending to be user.
  2. Chose user label – naming of the title used in the select dropdown to switch between users. Defaults to Choose user.
  3. Log out label – the label for the link to switch back to the originally logged in user. Defaults to Log out.
User Switching for WooCommerce Labels

Roles section

↑ Back to top

In this section you can choose which user roles that are able to switch to other users. Warning: users with the selected role will be able to switch to ALL users with the same or less capabilities (of the ones specified in the Switchable roles setting below).

User Switching for WooCommerce Roles

Switchable roles section

↑ Back to top

In this section you limit what roles the logged in users can switch to.

User Switching for WooCommerce Switchable roles

Display option

↑ Back to top

This option allows you to choose how you want the user to appear in the drop-down list.
The setting lets you change what is displayed and searched for when changing to a user. You can use any usermeta data that you want surrounded by {}.
One example of this is: {first_name} {last_name} ({wp_capabilities}). This will result in “John Doe (customer)” to show up when searching for a user.

User Switching for WooCommerce Display option

Plugin usage

↑ Back to top

When the plugin is activated and you are logged in as one of the roles defined in the plugin settings, the front-end user switching tool will be visible in the top left corner.

By clicking on the user icon a Choose user select box / dropdown will be visible. Search for the user and click on the name you want to switch to.

User Switching for WooCommerce Choose user

When you have switched to another user, a descriptive text will remind you that you are logged in as another user.

Click on the Log out link to switch back to the account you where originally logged in as.

User Switching for WooCommerce User role

Frequently Asked Questions

↑ Back to top

Are there any security risks using this plugin?

↑ Back to top

Switching user accounts is something that should be used with caution. However, this plugin uses several WordPress functions and other features to minimize potential problems and risks.

  • Only users with the ability to edit other users can switch between accounts.
  • Users can only switch to other users with the same or lower capabilities.
  • Uses the WordPress cookie authentication system when switching between accounts.
  • Uses the WordPress nonce security system which means that only users that intends to switch user accounts can execute the user switching functions in the plugin.

User Switching Icon not displayed correctly on the front-end?

↑ Back to top

If the z-index of a static (sticky) header has a greater z-index than the User Switching icon (set to 9999 as default), it may not be displayed correctly on your site as they are hidden when your menu is layered on top of the icon.