PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

Module customerRegistration management

217 replies to this topic
#1
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
New version 2.0
-- dedicated to presta 1.2 (not for 1.1) => new admin tab in backoffice
-- possibility to not block registration => only admin mail notification
-- possibility to put customer in specific groups on registration, using registration code
-- possibility for customer to ask for privilege acces => they are mapped into sprecific group if granted

Specifically to presta1.2, if you use another langage than EN or FR, you hvae to modify file customerregistration.php, line 46-47 to add your own langage before installing the module
$tab->name = array(Language::getIdByIso('en') =>'Pending',
Language::getIdByIso('fr') =>'En attente');



Purpose:
For some business purpose, customer registration may have to be validated before the customer can place orders onto the shop. For example, due to shipping zone or delivery concerns.

Feature :
This module try to answer this request.
As soon a customer registers to the shop, he can not been logged while his registration is not approved from the back office.
In BO, approbation/refusal can be done from the customer display page.
List of pending approval and approbation/refusal action is available through this module configuration place.
Number of pending registration displayed in BO main page.
Mail alert sent to administratos on new registration to be validated.

Default account.txt and account.html mails can be replace by the ones prposed in the mails directory of this module.
When the registration is approved, the customer is notified throught the customer_registration_ok.txt/html mail.
No mail sent when registration is refused.

ImplementationThe hook createAccountForm can be used to request more information during customer registration.
All users registered before module installation are considered as registered OK.
The uninstallation of the module will destroy all pending registration and related customer.

Tests
Tests only on french html mails.

Evolution / fixes
v1.1 : fixes on translation
v1.2 : sum-up in main BO page / mail alert to administrators on new registration
v1.3 : fix for IE7 on buttons displayed in admin customer page
v1.4 : fix to be compatible with presta V1.2 (still compatible with V1.1)
v1.5 : fix for french translation in V1.2 (NOTE : module directory renamed 'customerregistration', with 'r' instead of 'R'). Thanks to Zendik for his analysis on this issue.
V2.0 : new features, for 1.2 only (not compatible 1.1)

Links
To mask prices for unregistered customer, see Geno's thread HERE (for presta1.1)

Donation:
If you've appreciated this module and found it is usefull for you, you can make me a donation. Contact me in PM.
Thanks in advance

Attached Files



#2
[hans]

    PrestaShop Apprentice

  • Members
  • PipPip
  • 90 posts
Thank you!
it's perfect! :)

#3
TheTyke

    PrestaShop Apprentice

  • Members
  • PipPip
  • 103 posts
All hail ningu :coolsmile:
TheTyke

To infinity and beyond! Or maybe just to the bottom of the street!!!

#4
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
Updated for V1.2
see first post

#5
langbianiam

    PrestaShop Apprentice

  • Members
  • PipPip
  • 96 posts

From 1232317570:

Updated for V1.2
see first post

@ningu,
Could you attach an activation link from email?

Thanks

#6
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
It was one of my ideas to include an activation link in the sent email to admin, but it is not in the Prestashop principles for 2 reasons :

1/ In Prestashop, the admin part is quiet protected : admin dir is personnalized per site, and all admin action is protected by a token.
I didn't want to have to admin dir and the token embedded in an email

2/ If you want to filter customers registration, this is certainly because you want to check some information about the customer : adress/city/country... or cross checked customer existance through email exchange... or whatever if you add new info during registration.
All theses info can not be checked from the received email, so no link to validate customer.

Regards

#7
langbianiam

    PrestaShop Apprentice

  • Members
  • PipPip
  • 96 posts

From 1232382319:

It was one of my ideas to include an activation link in the sent email to admin, but it is not in the Prestashop principles for 2 reasons :

1/ In Prestashop, the admin part is quiet protected : admin dir is personnalized per site, and all admin action is protected by a token.
I didn't want to have to admin dir and the token embedded in an email

2/ If you want to filter customers registration, this is certainly because you want to check some information about the customer : adress/city/country... or cross checked customer existance through email exchange... or whatever if you add new info during registration.
All theses info can not be checked from the received email, so no link to validate customer.

Regards

Thanks ningu,
I see now.
Brgds

#8
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
Add of V.3 delivery (see first post)

This fixes issue on html formating for IE7 arround buttons in the customer admin page.

Thanks to Geno who raised me this issue.
His contribution :
http://www.prestasho...n__the_easy_way

#9
Tioneb

    PrestaShop Newbie

  • Members
  • Pip
  • 6 posts
Hello!
Thanks for developing this module.

Now I just need to find a way to hide prices before the customer log in! Any idea?

EDIT: the answer and the solution are on the post right above (shame on me :-P)

#10
Itsmejohnny

    PrestaShop Newbie

  • Members
  • Pip
  • 13 posts
Dear Ningu,
it seems that it is not working on the version i uses "Version 1.1.0.5 - 0.792s " or i place the files wrong.

After several time to re-install the shop, its time to ask you, if you can give me the places were the files most be placed to let it work.

please advice.

Best Regard,

John
(I'm new, and don't have a lot off knowledge of php, sorry)

#11
AngelofHaovc

    PrestaShop Apprentice

  • Members
  • PipPip
  • 82 posts
Hi Ningu,

Firstly, Thank you for the module. It's a great module that most users want it.

I tried to install it with me testing prestashop site (verion 1.1).
However, It does not show any record for the customers who registered. only show as the screenshot attached.

What I did are just copied the files to responding folders and copied the rest of files (like action.php, customerRegistration.php, fr.php, messages.php and messages.tpl under the root folder. then I created a new tab called customerRegistration and made the class as "ApprovedCustomer". please see the screenshot 2 attached.

I am just wondering where did I go wrong? What would be exactly detailed instructions about this module?

Does anyone know about it as well?

Thank you in advance

AngelOfHavoc

Attached Files

  • Attached File  sc4.JPG   100bytes   21306 downloads
  • Attached File  sc5.JPG   123bytes   21963 downloads


#12
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
This module is working fine with 1.1.05 version.

Simply unzip the *.zip file in the 'modules' directory of your installation.
Then, through to 'Modules' tabs, install it.

That's all folks.

#13
Itsmejohnny

    PrestaShop Newbie

  • Members
  • Pip
  • 13 posts
Hi
like i sayed before, i'm new and don't know alot of this shop.

Because it still doesn't work i will ask you all to help me with this.
Let me first tell you what i did.
I pleased a Dutch translation on it, on this i have Englisch and Dutch languesses.

To install this CustomerRegistration tool, i Did go to the modules dir. and placed the unzip files there.
I think , so far so good.
Next thing i did i go in the shop (admin) to the Tools tab were also the CMS tab is to find, and the Tabs tab like was written.
I take the Dutch Langues first and then click on Add New.
Then a pic a name, in my case customregistration in typed this, next by the Class i did fill in ApprovedCustomer.php (like was installed when i past the zip files there)
For parent i take Customer
I think , so far so good.

Now when i click on the Customer tab, i also see ApprovedCustomer, also good i think.
But when i look on addreses tab i see the one name i already add a a new customer before.
When i now again as a new customer write my specifications, i still be direct registrated so i think this module doesn't work or i do something wrong.

Please Advice, i feel so stopid :)

Best Reg,

John

#14
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
Hi John,

Quote

i Did go to the modules dir. and placed the unzip files there.
-> OK

Quote

Next thing i did i go in the shop (admin) to the Tools tab
->NOK : a module is not installed like this.
You have to go in the 'Modules' tabs and click the 'install' button of the customerRegistration module.

Then this module is activated :
- in the 'Configure' part of this module, you have the configuration and the pending registration
- in the home of the back office, you have the number of pending registration
- in the customer admin page, ypu have a new part managed by this module.

Regards
Olivier

#15
Itsmejohnny

    PrestaShop Newbie

  • Members
  • Pip
  • 13 posts
Dear Olivier,
thank you, it works.
Sometime it takes a little help to go further.
Tanks again.

Best Regards,
John

#16
bradhenz

    PrestaShop Newbie

  • Members
  • Pip
  • 9 posts
Does this work for either version of Prestashop? It get an error when I try to install the module in the back office.

#17
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
Only tested on presta 1.1b5
not really tested on SVN, i.e. comming 1.2, but should not work

#18
Presta-TR

    PrestaShop Addict

  • Members
  • PipPipPip
  • 544 posts

From 1235614244:

Hi Ningu,

Firstly, Thank you for the module. It's a great module that most users want it.

I tried to install it with me testing prestashop site (verion 1.1).
However, It does not show any record for the customers who registered. only show as the screenshot attached.

What I did are just copied the files to responding folders and copied the rest of files (like action.php, customerRegistration.php, fr.php, messages.php and messages.tpl under the root folder. then I created a new tab called customerRegistration and made the class as "ApprovedCustomer". please see the screenshot 2 attached.

I am just wondering where did I go wrong? What would be exactly detailed instructions about this module?

Does anyone know about it as well?

Thank you in advance

AngelOfHavoc


yes i have problem is this type..

i use v1.1 and no change whatever modification.
pls post.

thx

#19
Major

    PrestaShop Apprentice

  • Members
  • PipPip
  • 48 posts

From 1237216629:

Only tested on presta 1.1b5
not really tested on SVN, i.e. comming 1.2, but should not work


Hi all,

As ningu said, this useful module doesn't work as is with 1.2 alpha.
Has anyone managed to use it with this version of Prestashop?
If yes, how?

Thanks a lot.

#20
ningu

    PrestaShop Apprentice

  • Members
  • PipPip
  • 297 posts
Version v1.4 available in first message of this forum for compatibility with presta1.2

I'm checking why the french translation is not taken into account
I don't understand why it stay in english