Sometimes the administrator of an X-Cart based online store may require to access the store as another user. This may be needed to do stuff on behalf of the user (for example, to place an order on behalf of a customer), to check how the store user interface appears to the user or to investigate a problem.

In X-Cart 5 Business and more advanced editions, logging in to the store as a different user is possible using the “Operate as this user / Log in as this admin” feature (which is more often referred to as the “Operate as a user” feature). This feature works differently depending on whether you need to access the store as one of the registered customers or (in a store with more than one administrator) as another administrator. Below we are providing detailed information on each of the two cases:

  • Accessing Store as a Customer (“Operate as This Customer”)

  • Accessing Store as Another Administrator (“Log in as This Admin”)

Accessing Store as a Customer (“Operate as This Customer”)

To be able to access the store as one of the registered customers, you need to be an Administrator user with Root access (equals the role “Administrator”) or an Administrator user with any custom role including the permission to Manage users.

To use the feature:

1. Locate the profile of the customer you require in the user list and open the profile details for viewing by clicking on the customer email address.

2. From the Profile actions drop-down box, choose the action Operate as this customer:

As a result, the store’s Customer area will be opened in a new browser tab; on that tab the message “You are operating as customer_email_address” will be displayed at the top of the screen. You will also be able to see an overlay with the words “You are operating as customer, customer_email_address” and the Quit button:

3. Work in the browser tab where the storefront has been opened as if you were this customer.

Note: Since the “Operate as this customer” mode is typically used by X-Cart store administrators to create orders on behalf of customers, it is essential that the administrator should have an offline payment method they can use for creating orders when operating as customer users. For this reason, we made the payment method “Phone Ordering” available in the storefront to administrators working in the “Operate as this customer” mode - even if this method was disabled in the Admin area. The presence of the method “Phone Ordering” in the storefront when the administrator is operating as a customer is normal and is a feature of the “Operate as this customer” mode. The method is visible only to the administrator working as a customer; customers working under their own accounts will not be able to see or use this method.

4. To quit using the “Operate as this customer” mode, either click the Quit button in the overlay:

or switch back to the tab with your Admin area and do any action requiring the page to be reloaded (for example, go to a different page within the Admin area). You will be notified that you have finished operating as the customer:


Accessing Store as Another Administrator (“Log in as This Admin”)

To be able to access the store as one of the administrators, you need to be an Administrator user with Root access (equals the role “Administrator”) or an Administrator user with any custom role including the permissions to Manage users AND Manage administrators.

Note: It is not possible to use this feature to access the accounts of administrators with Root access (the role “Administrator”).

To use the feature:

1. Locate the profile of the customer you require in the user list and open the profile details for viewing by clicking on the customer email address.

2. From the Profile actions drop-down box, choose the action Log in as this admin:

3. The Admin area - as accessible to the selected admin user - will be opened in a new browser tab. Your current user session will be terminated, and you will be logged in to the store as the user you selected.

4. To quit operating as this user, simply sign out.

Related pages:

Did this answer your question?