Skip to content

Support for Inchoo_LoginAsCustomer #40

@peterjaap

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