Skip to content

GuestPasswordReset — Convert Guest to Customer Account

Extension for Magento 2

User Guide


CopeX GmbH
Web: https://copex.io
Email: office@copex.io


Table of Contents

Section Page
1 Requirements 2
2 Configuration 2
2.1 General Settings 2
3 Features 3
3.1 Create a Customer Account from a Guest Order 3
3.2 Address and Order Assignment 3
4 Troubleshooting 4

1 Requirements

  • Magento 2.3 or higher (compatible with 2.4)
  • PHP 8.1 or higher
  • Hyvä Theme or Luma Theme

2 Configuration

The module configuration is located in the Magento 2 admin panel under Stores > Configuration > Customers > Customer Configuration > Guest Password Reset.

Configuration

2.1 General Settings

Navigate to Stores > Configuration > Customers > Customer Configuration > Guest Password Reset.

  • Enable Guest Password Reset — Enables or disables automatic account creation for guest orders (Yes / No). When disabled, Magento's default behavior applies.

3 Features

3.1 Create a Customer Account from a Guest Order

This module allows customers who placed an order as a guest to retroactively create a customer account. The process is triggered via the forgot password feature.

Flow:

  1. Customer visits the forgot password page (customer/account/forgotpassword).
  2. Customer enters the email address used for the guest order.
  3. The module checks:
  4. Does a customer account already exist for this email? If yes, the default behavior runs (standard password reset link).
  5. Are there guest orders for this email? If yes, a new customer account is created automatically.
  6. The new account is populated with data from the order (first name, last name, prefix).
  7. A password reset link is sent to the provided email address.
  8. After clicking the link, the customer can set a password and log in.

3.2 Address and Order Assignment

After the account is created, the following data is transferred automatically:

  • The billing address from the most recent order is saved as the customer address.
  • The shipping address from the most recent order is also saved as a customer address.
  • All guest orders with that email address are assigned to the new customer account. The orders then appear in the customer's order history under My Account > My Orders.

4 Troubleshooting

  • Customer account already exists — If an account with the entered email already exists, the module does not activate. Instead, the standard Magento password reset flow runs.

  • No guest orders found — If no orders are found for the entered email, the standard Magento flow runs. No account is created.

  • Error during account creation — If account creation fails (e.g. due to invalid data), the error is logged and the process is aborted. The customer sees the standard Magento error page.


License

Proprietary — CopeX GmbH. One license per production Magento instance. Test and development environments do not require an additional license.