Open bastienuh opened 3 years ago
Hi,
Yes i know and this is why this this module is not really interesting for 1.7 versions. You can read comment on my blog post about this : https://www.h-hennes.fr/blog/2015/11/10/prestashop-ajouter-automatiquement-les-clients-a-un-groupe-lors-de-linscription/ I've read that some users find a way to do what the want to like https://www.h-hennes.fr/blog/2015/11/10/prestashop-ajouter-automatiquement-les-clients-a-un-groupe-lors-de-linscription/#comment-26098
On my side i don't plan to update the module as i've not found a way to make it as usefull as on prestashop 1.6
Regards,
Hi again,
In fact, the module cannot work with customer address with the default checkout (or register) process of PS 1.7, because you do not add the address on the register form. You add it after.
For example, in the register form :
And in the order process, you create an account first, saved in the database and after, you save an address, in a second step :
So, when the hook actionCustomerAccountAdd is launched, the address is not saved yet, and the customer is not added to a group.
One way could be to launch the hook after Customer Address update, but I did not find any hook for it.
Any idea to solve this?