Jump to content
PhpMadman

[FREE MODULE] Validate Customer

Recommended Posts

When the module sends email appears in the sender the word "shop" where I can change it.

please help. Thank you

Share this post


Link to post
Share on other sites
On 21. 3. 2017 at 12:27 PM, presiculebras said:

I have solved it with this module, but for prestashop 1.7 only version 3 works the latest version 4 (configurable and with more functions) does not work in prestashop 1.7
If someone gets the last version of the module to work in prestashop 1.7 I would appreciate it very much.
Greetings.

 

The download link of the module version is located in this same post:
# 38 [[FREE MODULE] Validate Customer: post # 38]
PhpMadman

Posted 13 August 2014 - 04:29 PM

Can you send me please a version 3 of this module because i work with PS 1.7.

Man thanks

Share this post


Link to post
Share on other sites

Hi is it possible to receive a mail when a customer registers ?

I've tried on PS 1.7.3.4 i've got the customer disable in the BO so it's good, but it will be nice to be noticed.

thanks

Share this post


Link to post
Share on other sites

hi, im using this validate module on prestashop 1.6.1.9,  but mail notify notwork, how i can fix it?

Share this post


Link to post
Share on other sites

Hi,


And thanks a lot for the great module.

How can I put a php verification that allows the default group (example: customer) to be activated automatically? 


Many thanks

Share this post


Link to post
Share on other sites

Sorted it like this

 

        if (Context::getContext()->customer->id_default_group == 3) {
            $customer->active = 1;
            $customer->update();
        }
        else {
            $customer->active = 0;
            $customer->update();
        }

 

The code was placed in validatecustomer.php. I have a custom form that user can pick the customer group. In my case 3 is the actual customer and it will be automatically approved. The rest of the ids are B2B and it will be placed pending. 

Nice module again and thanks for sharing it for free. 

 

Many thanks,
Mihai

Share this post


Link to post
Share on other sites

Hello,

I reopen this post.

I tried to use your module, but I think that it doesn't work.

When I active a customer, he doesn't receive the validation mail.

Can you help me please ?

BR,

Dan

Share this post


Link to post
Share on other sites

Hi.

It seems this module now has multiple issues.

I'm working on fixing all problem for PrestaShop 1.7.

What PrestaShop version are you running?

  • Like 1

Share this post


Link to post
Share on other sites

Hi.

This is the new version, this works on my PrestaShop 1.7.4.3.
I haven't tested, but I think it should work on 1.6 as well.   It most likely will not right now.

I have plans to add something along the lines as darkdev did. A feature that allows you to select what profile that should be validated.

Changelog:

Version 1.5 Beta
* Added code to ignore guestaccounts from order process

-- A few years gap due to Madman got lost in a cave, or other wisebusy --

Version 1.5.0
* Updated for PS 1.7
* Fixed 500 Error on redirect
* Fixed sending of mail
* Updated template to PS 1.7 standard

 

validatecustomer.zip

Edited by PhpMadman
not for 1.6... (see edit history)
  • Like 2

Share this post


Link to post
Share on other sites

Hi PhpMadman! Thank you for this useful module!!

I inserted a photo and added some text on the screen after registration. Especially because sometimes Gmail reports emails as spam.

I also translated the sentences into Italian. If it can be useful to you or someone else, I'll post it here!

Thanks again!

Schermata_2018-11-12_alle_12_11_33.png

Schermata 2018-11-12 alle 12.09.44.png

Schermata 2018-11-12 alle 12.10.27.png

Share this post


Link to post
Share on other sites

Hi.

Feel free to post it.

I think the texts are a good. The latest version I'm working on does have some changes in text, but mostly spellings mistakes.

Share this post


Link to post
Share on other sites

Hello @PhpMadman

I'm trying to install the module on my website (1.7.5) but I got this error:

Server responded with 0 code.

Please, can you help me?
Regards!

Share this post


Link to post
Share on other sites

I used prestashop version 1.7.5.1

 

And i tried install free module into above version but verification email not sent into email and only i got default prestashop register email.

 

so please suggest me, how can i fix it in prestashop 1.7.5.1 version ?

 

Thanks in advance.

Share this post


Link to post
Share on other sites

Hello,

I updated my website to 1.5.1 and now the module doesn't work and I need it so hard. Please, can you help me?
Regards,

Share this post


Link to post
Share on other sites

1.5.1 too old version.

 

Upgrade to 1.7.5.1 and change custom way because there is not any free module available for email verification.

 

I also did this functionality custom way.

Share this post


Link to post
Share on other sites

Sorry sir, my mistake. I meant 1.7.5.1.

I uninstalled and installed again and now it works.

Thank you.

Share this post


Link to post
Share on other sites
Posted (edited)

thanks for the module

this modification only show on register page, not showing in profile page when login

edit modules/validatecustomer/views/templates/hook/needactivation.tpl

{if $customer.is_logged}
{else}
	<p>
	<br>
      <strong class="exclusive">
        {l s='Your account must be approved by an admin before you can login after registering' mod='validatecustomer'}
      </strong>
	</p>
{/if}

 

Edited by pujionodk (see edit history)
  • Thanks 1

Share this post


Link to post
Share on other sites
Posted (edited)

I have made some updated on this again.

And a thanks to @pujionodk for writing an better code then I thought of for needactivation  template.

Version 1.6.0
* Add option to select customergroups that need validation (Default Customer group is auto selected)
* Removed debug code
* Fixed bug in PS 1.6 support for validation message
* Fixed spellings mistakes
* Improved text displayed to customer
* More updates to PSR-2
* Don't show need activation message if customer is logged in

Version 1.6.1
* Added SQL security code
* Happy 2019

 

I have tested this on 1.7.4.4, and it works fine.

Version 1.6.0 was tested on a PrestaShop 1.6, but version 1.6.1 was not, so not sure they are fully compatible.

validatecustomer.zip

Edited by PhpMadman
typos... (see edit history)
  • Thanks 2

Share this post


Link to post
Share on other sites

I just updated some texts, so you need to re-translate those, other then that, it should be the same.

Do you have some problem with the translations?

Share this post


Link to post
Share on other sites
Posted (edited)

Hello,

I have a problem. When we receive the emails, it says the sender is "Chef Global" instead "Eutron"!! Why is it happening? Attached file.

Thank you.

2.thumb.jpg.9c262bc57fd40fea5bd09576384edcb8.jpg

Edited by crisrodreyes (see edit history)

Share this post


Link to post
Share on other sites

Hi.

I think that might be something in your e-mail client.

This is how it looks to me in my client.

ValCus-Email-Activated.thumb.png.b647c5570c680b894d70f843877c22fd.png

Share this post


Link to post
Share on other sites

Hello again,

 

It is not that because when I receive another kind of email from the website, it appears properly:

2.thumb.jpg.c72b01457266073725c9b77eec49831f.jpg

Share this post


Link to post
Share on other sites
Posted (edited)

Okey. I'll do some test, see if I can find something.

What version of PrestaShop and module are you running?

Edited by PhpMadman (see edit history)

Share this post


Link to post
Share on other sites
Posted (edited)

hello, Thank you for sharing, the inscription ok, problem does not notify the customer when the account is activate ?

Edited by Mosaïsme (see edit history)

Share this post


Link to post
Share on other sites
On 3/10/2019 at 6:51 PM, PhpMadman said:

I just updated some texts, so you need to re-translate those, other then that, it should be the same.

Do you have some problem with the translations?

Hi, thanks

It's done, I delete my translation file, and translate from BO module translation, thank you

Share this post


Link to post
Share on other sites
23 hours ago, crisrodreyes said:

Prestashop 1.7.5.1 and module v1.5.0

I did some testing on 1.7.5.1 and module 1.6.1, and I can't replicate your problem. Do you have this Chef Global anywhere in your PrestaShop, i.e a second store, employee name or anything like that?
I checked the code, and it should display the shop name. I can't see any reason for this odd text to appear.

 

15 hours ago, Mosaïsme said:

hello, Thank you for sharing, the inscription ok, problem does not notify the customer when the account is activate ?

Hi. Does the other mail works, is both options enabled? Do you get a mail when customer has registered?

Share this post


Link to post
Share on other sites

Good morning Sir,

I have another shop which name is Chef Global, but it is totally separated (not multistore). So I don't know how it is possible to happen this....

Share this post


Link to post
Share on other sites

Try this version.

I changed the code for the e-mail. It now just makes one call for shop name.
So if Chef Global is some how coming from PrestaShop or the Module, it will either say Eutron or Chef Global on all places of the mail.

If it stays the same, it is most likely an mail client thing. And also, if needed, I could register an account on your site, to see how the mail looks to me.

validatecustomer.zip

  • Like 1

Share this post


Link to post
Share on other sites

Hi again,

Thank you very much. The problem continues :(

I don't know why is the reason but the other emails works properly, so I don't think it is not because of the mail client.

Share this post


Link to post
Share on other sites

HI yes the customer receives an email at registration

Share this post


Link to post
Share on other sites

Then I think you need to clear shop cache, or re-check your settings.

I removed the shop name param from the module. Now the name is added by prestashop core code, and it get's the name from the PS_SHOP_NAME.
That setting is set under Configure > Shop Parameters > Contact > Stores > Contact Details > Shop Name

Share this post


Link to post
Share on other sites
4 minutes ago, Mosaïsme said:

HI yes the customer receives an email at registration

Yes. But have you configured the module to send YOU a message then a customer is registered, and have you activated the modules setting to automatically send e-mail when a customer is registered? Do you get that e-mail informing you that a customer has registered?

Share this post


Link to post
Share on other sites
Posted (edited)

the customer does not receive activation of his account ? the customer receives an email at registration ?

Edited by Mosaïsme (see edit history)

Share this post


Link to post
Share on other sites
29 minutes ago, PhpMadman said:

Then I think you need to clear shop cache, or re-check your settings.

I removed the shop name param from the module. Now the name is added by prestashop core code, and it get's the name from the PS_SHOP_NAME.
That setting is set under Configure > Shop Parameters > Contact > Stores > Contact Details > Shop Name

Hi,

I cleared shop cache and re-checked my settings but it's all OK.

2.jpg.1dae5865bd1bf4cd925c144ebbe50858.jpg

Share this post


Link to post
Share on other sites

Okey... This is really strange. It really should say Eutron.

This is the last one I can give you. If this don't help, I have no idea how to fix this.
This one has the name Eutron hardcored in to it. I tried it to in my shop, it says Eutron in the mail, even tho my shop is called Awesome.
Also, I upgraded the version number to 1.6.1.1 so make sure you get that version number on Modules page.

validatecustomer.zip

Share this post


Link to post
Share on other sites
47 minutes ago, Mosaïsme said:

once activate the client do not receive mail ?

Is the module setup correctly? Like this?

CusValSettings.thumb.png.5622bb7ecc67df52a6e3a327a04a053f.png

Share this post


Link to post
Share on other sites
3 hours ago, PhpMadman said:

Is the module setup correctly? Like this?

CusValSettings.thumb.png.5622bb7ecc67df52a6e3a327a04a053f.png

 

Thank, what version do you use ?

Share this post


Link to post
Share on other sites

The latest version 1.6.1 should work on all  PrestaShop 1.6 and later.

Share this post


Link to post
Share on other sites

Ok Thank you my friend if it happens again what to do

Share this post


Link to post
Share on other sites
On 3/12/2019 at 1:31 PM, PhpMadman said:

Okey... This is really strange. It really should say Eutron.

This is the last one I can give you. If this don't help, I have no idea how to fix this.
This one has the name Eutron hardcored in to it. I tried it to in my shop, it says Eutron in the mail, even tho my shop is called Awesome.
Also, I upgraded the version number to 1.6.1.1 so make sure you get that version number on Modules page.

validatecustomer.zip

Thank you!

Share this post


Link to post
Share on other sites

Thanks so much for this. It's exactly what we needed. Just don't make the same mistake I did and download the latest version, with Eutron hard-coded in it!!

Share this post


Link to post
Share on other sites

Is there any chance for only activation link(in email) for the customer? I don't want to approve the customer account manually. Thanks. 

Share this post


Link to post
Share on other sites
On 1/24/2013 at 2:34 PM, PhpMadman said:

 

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

validatecustomer.zip

 

 

We added this to our Presta 1.7 ( latest) and we are getting  error on customer signup

*ERROR* v1.7.6.0 2019/07/27 - 13:45:37: No template found for validate.tpl at line 68 in file classes/Smarty/TemplateFinder.php

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More