[FREE MODULE] Validate Customer - Free Modules & Themes - PrestaShop

Jump to content

Photo

[FREE MODULE] Validate Customer

register validate customer approve

#1

Posted 24 January 2013 - 10:04 AM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts

Hi.

This is my first attempt on a module.
It's a basic module, that informs the customer that a admin must approve his account before he can login.

When user register account, the module automatically logout customer, and then set the status to disabled.
After that you have to manually enabled customer and the if mail template exist in your language, an mail will be sent automatically.

 

Version 1.1
* Added support for translations
* Added redirect to validate page.
* Fixed text typo
* Added some text to validate page.

Version 1.2
* Changed redirect address
* Added mail notify code from Anila Niaz's customerupdatenotification modulehttps://github.com/anila-niaz/Prestashop/tree/master/Modules/customerupdatenotification
* Diabled notify code, it's not working

Version 1.3
* 1.6 upgrade
* Competly remove code for auto mail
* Improved the code for how account is deactivated
* Wrote new and improved mail code
* Added php switch for mail
* Mail should be sent in customer language
* Added a db table to see what customers has been validated by module

Version 1.4
* Remove Please call line from template
* Fixed? redirect issue. Tested on 1.6.0.9
* Added switch to enable auto sending e-mail when an account activates
* Added switch for enableing employee e-mail when customer register

Attached File  validatecustomer.zip   24.13KB   1366 downloads

 


Edited by PhpMadman, 30 December 2014 - 08:55 AM.


#2

Posted 13 February 2013 - 01:47 PM

eligomez86

    PrestaShop Apprentice

  • Members
  • PipPip
  • 44 Active Posts
I've installed it and now it's impossible login as a customer :-((

Any solution? I'm using 1.5.3
Elisabet Gómez

-Trasteando con Prestashop muy modestamente en Productos Esotéricos CM-

#3

Posted 13 February 2013 - 03:24 PM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts
That seems very strange.
All the module does is to set newly reggd customers to disabled.
All old customers should not be affected.

Edited by PhpMadman, 18 February 2013 - 08:59 AM.


#4

Posted 17 February 2013 - 07:45 PM

centrobolsos

    PrestaShop Apprentice

  • Members
  • PipPip
  • 55 Active Posts
Thank you for creating this module! I think is great, but when a customer creates an account, in the backoffice you can't see it (at the top in the left, like facebook), you must go to customers and see it.

And when you create the account, it redirects directly to the autentification page. Could you do it to redirect to another page that only shows "Your account is not activated yet, we're checking your account. If you want an instant answer call us to.... or send us an email to..." or something like that.

#5

Posted 18 February 2013 - 08:59 AM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts
Hi.

It shows customer in the little msg panel in backoffice for me.

As for the redirect. I don't know how to to that yet. I only been working on PS for 2 months. And I need to get the company's webshop launched soon. But I will look in to it, when I have the time. But it may take a while..

#6

Posted 08 March 2013 - 03:20 PM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts

And when you create the account, it redirects directly to the autentification page. Could you do it to redirect to another page that only shows "Your account is not activated yet, we're checking your account. If you want an instant answer call us to.... or send us an email to..." or something like that.


Hello.

I'm been working on this. And managed to add a redirect.
However if feels a little empty.
Any thoughts on what text to display? Currently I have this.

{l s='Thank you for registering.' mod='validatecustomer'}<br>
{l s='Your account must be approved by an admin before you can login after registering' mod='validatecustomer'}

Oh, and also... It can now be translated. Swedish language will be included in next release.

#7

Posted 09 March 2013 - 09:28 AM

centrobolsos

    PrestaShop Apprentice

  • Members
  • PipPip
  • 55 Active Posts

Hello.

I'm been working on this. And managed to add a redirect.
However if feels a little empty.
Any thoughts on what text to display? Currently I have this.

{l s='Thank you for registering.' mod='validatecustomer'}<br>
{l s='Your account must be approved by an admin before you can login after registering' mod='validatecustomer'}


I guess that it's ok, you only need to say few words. Also you could type something like "Your account must be approved by an admin before you can login after registering. If you want an instant answer, please call to : shopnumber"

#8

Posted 11 March 2013 - 09:13 AM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts
New release can be found i first post. Now I have to keep working...

#9

Posted 23 March 2013 - 11:10 PM

centrobolsos

    PrestaShop Apprentice

  • Members
  • PipPip
  • 55 Active Posts
Thank you PhpMadman!!! I really appreciate it!
but i have an issue, the problem is when someone creates an account, in the backoffice appears this:
Posted Image

I want only actived the second one and the third one, and not actived the first one.

Also where can i translate the text "Thank you for registering.
Your account must be approved by an admin before you can login after registering.
If you want an instant answer, please call :"????

thank you.

PD: do you know how to create a little popup window that says "you need to login to see the prices" or something like that?

Edited by centrobolsos, 23 March 2013 - 11:27 PM.


#10

Posted 25 March 2013 - 09:58 AM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts
If I understand you correct, if you click to acivte newsleltter and 3rd party offer, the account get's activated?

As for the translation. in the module folder, check the translation folder. There is a swedish translation. copy that, change it to your countrycode and then change the swedish string. Do not mess with the scrambeled validatecustomer]>844sdfs string

As for the popup window. Not at the moment.

#11

Posted 25 March 2013 - 02:11 PM

centrobolsos

    PrestaShop Apprentice

  • Members
  • PipPip
  • 55 Active Posts

If I understand you correct, if you click to acivte newsleltter and 3rd party offer, the account get's activated?

As for the translation. in the module folder, check the translation folder. There is a swedish translation. copy that, change it to your countrycode and then change the swedish string. Do not mess with the scrambeled validatecustomer]>844sdfs string

As for the popup window. Not at the moment.


Haha, no. Sorry, i'm not very clear explaining.
In the picture, the second and the third option when it's activated, in my back office if a customer is new, on the top appears a number, like in facebook. I mean, i register as a customer, and wait for the admin answer, but the admin didn't know if i'm new or not, because there's no "popup" or "new notification" like facebook, i know that it's not very usefull, but sometimes it is.

Thank you for your effort.

#12

Posted 25 March 2013 - 02:35 PM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts
Oh. Okey, then I understand. I don't know what could be causing that. Because all my module really do is when customer reg, it log them out from their account, and then disable it. It dosen't really do anything in the backoffice.

I'll do som test tonight if I got the time, but it seem like a very strange ting for my module to cause.

#13

Posted 13 April 2013 - 01:02 AM

PrestaFanBoy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 86 Active Posts

Hi.

This is my first attempt on a module.
It's a basic module, that informs the customer that a admin must approve his account before he can login.

When user register account, the module automatically logout customer, and then set the status to disabled.
After that you have to manually enabled customer and manually email customer that his account has been enabled.

I have to develop my works webshop, so I don't have time to update / maintain the module so much, so anyone can feel free to update it as they see fit.

*UPDATE*

New release, Changelog

Version 1.1
* Added support for translations
* Added redirect to validate page.
* Fixed text typo
* Added some text to validate page.

Some notes.
I used the {debug} smarty to find a smarty called {$telnumber}, and that for me atlest, get's our nr to the store. However, it does not seems to be the number entred in the Store Contacts, beacuse I added a ! and it did not show.

The tpl file customers are redirected to is called validate, and can be foumd in views/templates/front
Edit as see fit, to see your changes, navigate to index.php?fc=module&module=validatecustomer&controller=validate



Hi,

Its really great to see your module. I hope to develop one in future.

I wonder If admin fails to validate it in time and the customer goes to other site as he cant shop in my site? Just thinking about this possibility.

Or is it same like a customer gets verification email instantly and thus he can verify his account and start shopping?

Please correct me if i misunderstood the functionality.

Thank you.

Thank you.

#14

Posted 13 April 2013 - 07:32 AM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts
Hi.

You got most of it right.
I will simplify it.

1. This modules does nothing automatic.
2. User reg, user get reg mail, user goes my validate msg page.
3. An admin has to manually activate user in BackOffice, and then manually send a mail to the customer, about the user been activated.

So that the user is get annoyed and goes to another site is a possibility.

But not an issue for my site, since it aimed at local companies.

#15

Posted 13 April 2013 - 10:17 AM

PrestaFanBoy

    PrestaShop Apprentice

  • Members
  • PipPip
  • 86 Active Posts

Hi.

You got most of it right.
I will simplify it.

1. This modules does nothing automatic.
2. User reg, user get reg mail, user goes my validate msg page.
3. An admin has to manually activate user in BackOffice, and then manually send a mail to the customer, about the user been activated.

So that the user is get annoyed and goes to another site is a possibility.

But not an issue for my site, since it aimed at local companies.


Hi,

Thanks for clarifying it. :)

What is the main objective of providing such privileges to admin at the cost of user convenience as this generation is getting impatient over wait times.

Sometimes, I am afraid even having need to register gets away customers.

I am trying to improve my site's UX quotient. :) and will install your module.

Thank you.

Edited by PrestaFanBoy, 13 April 2013 - 10:25 AM.


#16

Posted 13 April 2013 - 10:25 AM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts
Well, sine our site is for country local companies. We use it to make sure they are registred as a company that pays a speical company tax called F-Skatt, and also to check that they are credit friendly.

As for thoose who use it on sites with regular users I don't know...

#17

Posted 29 April 2013 - 05:48 AM

AngelSpeedy

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 145 Active Posts
Error installing in Ps 1.4.9.0.. Cant be installed..

Tks..

#18

Posted 29 April 2013 - 08:26 AM

PhpMadman

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 382 Active Posts

Error installing in Ps 1.4.9.0.. Cant be installed..

Tks..

This is tested on 1.5.3.1 should work on 1.5.x.

I looked one some modules, for 1.4, but there is to much code diffrence for it to work.

#19

Posted 01 May 2013 - 12:37 AM

AngelSpeedy

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 145 Active Posts
ok tks.. i already delete the module.. tks.. ;)

#20

Posted 05 May 2013 - 07:25 PM

Dead2010

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 278 Active Posts
hello, this works in 1.4.10?
I have this, anyone who wants can take a look
http://www.prestasho...ation-by-email/



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cookies help us deliver our services. By using our services, you agree to use our cookies.     Learn more