nenes25 / prestashop_customerautogroups

Prestashop module which automaticaly add customer in groups depending params after registration
Open Software License 3.0
27 stars 11 forks source link

Module not working when address is not in account creation (with 1.7 ?) #7

Open bastienuh opened 3 years ago

bastienuh commented 3 years ago

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 : Capture d’écran 2021-06-02 à 13 28 23

And in the order process, you create an account first, saved in the database and after, you save an address, in a second step : Panier-Saint-Joseph

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?

nenes25 commented 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,