dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
110 stars 31 forks source link

Not sync new users when create new user #169

Closed Growlyagency closed 2 years ago

Growlyagency commented 3 years ago

Hi! When we create new user on WordPress, its not syncing it automatic to FireBase. I think that was the point of the plugin. How we get automatic sync to Firebase when make new user on WordPress?

dalenguyen commented 3 years ago

Hi @Growlyagency, can you share the current configuration on your dashboard?

Please make sure that you follow the instruction: https://firebase-wordpress-docs.readthedocs.io/en/latest/firebase/users-to-firebase.html

Growlyagency commented 3 years ago

Yes we have followed the instruction. Problem is this: We sell online courses on our WooCommerce store, when customer buy course, account is created automatically after checkout. After customer have purchased course he lands on thanks page. Now when Firebase plugin is active customer redirect automatically from thanks page to homepage and he cant see instructions on landing page. Then he try to log in and Firebase asks First and Last name, email and password again what he have already put in checkout so this is little bit hazzle. How we can sync it automatically to firebase after purchase so he dont need to put firstname, lastname, email and password again for firebase login form?

Image of the problem (User have already created account from purchase): https://ibb.co/FW5BHYd

dalenguyen commented 3 years ago

What about letting the user creates an account before purchasing? WooCommerce has that setting. You don't have to worry about the redirecting to home page after purchasing. And the user will be created once.

Growlyagency commented 3 years ago

Hi! I tried that but when i choose Let users create account on checkout it wont show register or login forms. I dont know is that from Learndash because when we sell Learndash courses, it forces to create account in checkout..

Growlyagency commented 3 years ago

I think bigger problem is that redirect after purchase, is it possible to disable?

Growlyagency commented 3 years ago

Hey. I think the flow not working right now?

Now: User makes order -> Woo makes user -> He logs in first time -> He sync to firebase

I think sync must work like this: User makes order -> Woo makes user -> Synced automatically to firebase without logging in.

How we can achieve that?

dalenguyen commented 3 years ago

If Woo makes an account, it will not be synced to Firebase. In the Woocommerce, settings, we shouldn't let users create an account. They have to log in via the plugin in order to continue the purchase flow.

You can take a look at the sample guide

https://firebase-wordpress-docs.readthedocs.io/en/latest/extensions/woocommerce.html