prestashop_customerautogroups icon indicating copy to clipboard operation
prestashop_customerautogroups copied to clipboard

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

Open bastienuh opened this issue 4 years ago • 1 comments

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?

bastienuh avatar Jun 02 '21 11:06 bastienuh

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,

nenes25 avatar Jun 02 '21 12:06 nenes25