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
111 stars 31 forks source link

Automatically redirect from Order Recieved page to Home page after couple of seconds- #170

Closed Growlyagency closed 3 years ago

Growlyagency commented 3 years ago

When customer buy product from our WooCommerce store it redirects customer normally to order recieved page and it works.

Problem is this: Now when customer are in order recieved page it somehow automatically redirect it to homepage and that is the bug. Is there some function to disable that? In order recieved page there is instructions from product what customer needs to read.

So we want to disable the redirect from order recieved page to homepage.

Thanks.

dalenguyen commented 3 years ago

Hi @Growlyagency, not sure if it's resolved. I think it relates to WooCommerce configuration.

Growlyagency commented 3 years ago

Hey! Its not yet resolved. You have any ideas how we can fix it?

Growlyagency commented 3 years ago

I think the problem is this:

Normal WooCommerce: When new user makes order it makes account and it logs him automatically in after checkout and he have access to order-recieved page.

With Firebase: When new user makes order it makes account but it wont let him log in automatically because Firebase and then he dont have access to order-recieved page.

Fix: When new user make order and account he must automatically log in after checkout.

dalenguyen commented 3 years ago

When applying firebase authentication, the default Woocommerce shouldn't allow users to register via the normal flow. Users should register via the PRO plugin before checking out.

Growlyagency commented 3 years ago

Yes they register via the PRO plugin when they log first time in (after checkout). But how we get that flow like normal WooCommerce? After new customer makes order, he logs automatically in on hes new account?

So everytime you need to log in.

If you make user on firebase mobile app, it wont automatically sync it to WordPress so you have to log in to WordPress site and then it registers it, right?

dalenguyen commented 3 years ago

Users should registers before checking out in order to have them on Firebase & Wordpress.

Users register on firebase mobile app will not automatically sync to WordPress. It will be synced the moment users log in to Wordpress.