Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Magento Username Module to support username in the customer account

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 MageTrashApp @ 7e86625
Octocat-spinner-32 app
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 modman
README.md

Diglin Username

Magento module which allows your customers to use a username and not only the email address as identifier

Features

  • Magento 1.3 to 1.8.1
  • Login with a username and/or email, it can be done from frontend during checkout or getting access to the customer account
  • Save a username from frontend (register account or checkout process) or from backend by editing a customer account
  • Check that the username doesn't already exists
  • Allow you to deactivate temporary customer account from Customer Management page (bonus functionality from version > Magento 1.4.x). The user will be blocked if the option in the customer backend is set to no.
  • The default templates override some customer and checkout views to adapt display for login pages, checkout process and account edition in frontend. If you have a customized template, please check the layout file username.xml and compare with your template to use or adapt to your situation.
  • When you have already customers in your system and you do a first install of this plugin, a username will be generated for each customer based on a part of his email and a unique id. (e.g. email address is "developer@localhost.com" -> username is "developer1235467")
  • Configurable options to define what kind of username to support: only letters, only digits, both or default (digits, letters and special characters '-_')
  • Configurable options to set the maximum and minium string length
  • Display Username of each customer in the Customer Management Grid
  • Allow or not the customer to edit the username in My Account in frontend
  • Compatible and tested with Magento version >=1.4.2 until 1.7.x
  • support username when a customer wants to retrieve his forgotten password thanks to the "Forgotten Password" form
  • support username into the template of the persistent module
  • NEW - support Custom Regex validation (Select the Input validation 'custom' from the configuration page)

Installation

Via Magento Connect

Via modman

  • Install modman
  • Use the command from your Magento installation folder: modman clone https://github.com/diglin/Diglin_Username.git

Via composer

  • Install composer
  • Create a composer.json into your project like the following sample:
{
    ...
    "require": {
        "diglin/diglin_username":"*"
    },
    "repositories": [
        {
            "type": "composer",
            "url": "http://packages.firegento.com"
        }
    ],
    "extra":{
        "magento-root-dir": "./"
    }
}

  • Then from your composer.json folder: php composer.phar install or composer install

Manually

  • You can copy the files from the folders of this repository to the same folders of your installation

Documentation

  • Please, configure the module go to the backend and follow the menu System > Configuration > Diglin > Username
  • You can put the username into your email template, you can put the following string {{var customer.username}} in the email templates: account_new.html and account_new_confirmation.html
  • If you have a 404 error page, try to login/logout and go back to the configuration page. Or save again the Administrator role in System > Permissions > Role

Important

  • If you have an important quantity of customers in your database, please try this module on a development environment first. All old customers will get a random username based on their email address. The process may be long during the installation.
  • It's important to know if you create account from the backend, check which Website where you want to save the account
  • Check if you want to have the customer account global or per website, see in System > Configuration > Customers > Customer Configuration > Account Sharing Options If set to "Per website", the username will be unique per each website If set to "Global", the username will be unique for the whole website

Uninstall

The module install some data and changes in your database. Deinstalling the module will make some trouble cause of those data. You will need to remove those information by following the procedure below.

Via MageTrashApp

An additional module called MageTrashApp has been installed with this module to help you to uninstall this module in a clean way. If it is not installed, please install it from MageTrashApp If it is installed, go to your backend menu System > Configuration > Advanced > MageTrashApp, then click on the tab "Extension Installed", select the drop down option "Uninstall" of the module Diglin_Username and press "Save Config" button to uninstall If you use this module, you don't need to make any queries in your database as explained below in case of manually uninstallation.

Via Magento Connect or manually

  • If you used Magento Connect, you may use the deinstall process of the Magento Connect Backend page view of your Magento installation.
  • Otherwise remove the files following the hierarchy of the folders of this repository
  • Then get access to your database and do the followings queries: Do the following sql query in your database after to have done a backup, please check the table name with your database:

DELETE FROM eav_attribute WHERE attribute_code LIKE '%username%'; ALTER TABLE sales_flat_quote DROP COLUMN 'customer_username'; ALTER TABLE sales_flat_order DROP COLUMN 'customer_username';

Author

Donation

Invite me for a drink

Change Log

  • 2.2.0
    • Add Custom Input validation option
  • 2.1.0
    • Magento 1.8 support
    • Copyright changes
    • Move column grid to observer
  • 2.0.1
    • add composer support
    • fix some sql bugs while installing
  • 2.0:
    • add support for the "forgot password" form
    • fix bugs with checkout as guest
    • implement best practices for install process
    • check if same username are not used in different websites when the shop owner change the configuration of the "Account Sharing Options"
    • add conditional templates for the persistent module
    • Update the license in PHP file
Something went wrong with that request. Please try again.