Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bastienuh opened this issue Jun 2, 2021 · 1 comment

Comments

@bastienuh
Copy link
Contributor

bastienuh commented Jun 2, 2021

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
Copy link
Owner

nenes25 commented Jun 2, 2021

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,

bastienuh added a commit to bastienuh/prestashop_customerautogroups that referenced this issue Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants