Skip to content

Login with Customer Number

The plugin “Login with Customer Number” enables your customers to log in easily and user-friendly by using their customer number instead of an email address – particularly advantageous for B2B shops. Additionally, a free text field, such as an old customer number or a username, can be used for login.

Account Registration

All texts are available as text snippets in the backend and can be easily customized and translated into multiple languages. This plugin extends the standard login functionalities of Shopware and offers more flexibility for your customers.

If your migrated customers from old systems like Magento do not have an email address, this plugin displays a configurable modal for email assignment.

Open Plugin in Shopware 6 Store

First Steps

Installation

Composer

Generally, we recommend always installing Shopware plugins via Composer. Your Shopware installation must be authenticated once. You can find instructions in the Shopware Documentation. Once you have done this and purchased our plugin from the store, you can install it with the following commands:

  1. Add the plugin to your Composer dependencies.

    Terminal window
    composer require [store.shopware.com/cobcustomernumberlogin](https://www.google.com/search?q=https://store.shopware.com/cobcustomernumberlogin)
  2. Update the plugin list.

    Terminal window
    bin/console plugin:refresh
  3. Install and activate our plugin in one step.

    Terminal window
    bin/console plugin:install --activate CobCustomerNumberLogin

Shopware Administration

Alternatively, you can of course install and activate the plugin via the usual way under the menu item My Extensions.

My Extensions

Configuration

Once the plugin is installed and activated, you can customize the plugin to your needs via the Configure option within the extension manager. In earlier Shopware versions, this option is hidden in the context menu ....

Here you can set many additional functions of our plugin.

Plugin Configuration

General Settings

Configuration           Description                                                                                                                                                                                                                                                                                                              
Alternative Customer NumberNormally, the Shopware customer number is used for login. If you have stored your own customer number or username in a free text field, you can specify the technical name of this free text field here. This is then used for login as an alternative to the email address.
Hide Customer Number This plugin outputs the customer number in the account (storefront). You can deactivate this function with this setting.                                                                                                                                                                            

Storefront Account

Email Modal

Especially when migrating from other systems, it happens that no email addresses are available for existing customers. Often, only customer numbers are assigned to the data records. However, Shopware 6 requires customer numbers to function correctly.

With our plugin, you can now ask your existing customers to provide an email address after logging in with their customer number. When importing your existing customers, it is best to assign a standard address to everyone, e.g., shopware6@example.com.

Configuration       Description                                                                                                                                                                                                             
Activate Modal    Activates the request for email assignment.                                                                                                                                                                            
Regex Validation   This Regex rule specifies for which customers the modal should be displayed after login. The default is for all email addresses ending in @example.com.
Ask for PasswordSpecifies whether the password should be requested in the modal.