Add a block in the registration form where the customer can select his group. The admin can choose which group the customer can select, from module configuration page. This module doesn't modify default database tables, just inform the merchant (with an e-mail) that a new customer has registered in his shop.
Prestashop 1.6.x recommended
- compress the
blockcustomergroup
folder in zip or tarball format - go in the admin form of your site
- select
modules
- search for
Block Customer Group
- click the
Add
icon in top right corner - select the compressed module
- upload and install it!
- rename the folder in
blockcustomergroup
- add it in the folder
your-site\prestashop\modules
- go in the admin form of your site
- select
modules
- search for
Block Customer Group
- install it!
Once you added all groups in Prestashop:
- go to the module
Configuration
- select group(s)
- select default group
- choose if in the registration form can be seen the discount percentage
- select the type of visualization (select / radio)
If the module doesn't send the e-mail:
- Module folder
blockcustomergroup
- mails
- create your country folder (example: Italy -> "it" folder)
- insert your translated mail template
to modify the registration form, from ACCOUNT ONLY
to ACCOUNT + ADDRESS
:
PREFERENCES
Customers
Registration process type
change inStandard
to add the DNI field in the registration form:
LOCALIZATION
Countries
- select and edit your country
- enable
Do you need a tax identification number?
If you have ValidateCustomer module, you need to install BlockCostumerGroup before that, otherwise it will not send e-mails!
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request!
1.0.0
Daniele Gambaletta
- This is my first prestashop module
- English isn’t my first language, so please excuse any mistakes.
This module is available under the MIT license. See the LICENSE file for more info.