Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

Support for Inchoo_LoginAsCustomer #40

Description

@peterjaap

We use the Inchoo_LoginAsCustomer to login under a certain user account from the backend. This extension always redirects it back to the login page without logging the user in. I've found where it goes wrong and fixed it by changing line 104 in Model/Observer.php from;

if ($oB2BCustomerHelper->isLoginRequired() == true && !$oB2BCustomerHelper->isCustomerLoggedIn()) {

to;

if ($oB2BCustomerHelper->isLoginRequired() == true && !$oB2BCustomerHelper->isCustomerLoggedIn() && !($oControllerAction instanceof Inchoo_LoginAsCustomer_CustomerController)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions