WooCommerce Register or Login Gateway
Adds an intermediate step between the cart and checkout to collect account intent.
by managingwp · github.com/managingwp/woocommerce-register-or-login
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/managingwp/woocommerce-register-or-login/archive/refs/heads/main.zipReadme
WooCommerce Register or Login Gateway
Overview
This proof-of-concept plugin inserts a friendly checkpoint between the WooCommerce cart and checkout for guests. When guest shoppers click Proceed to checkout, they are guided to a custom page that captures their email and lets them choose to sign in or create an account before forwarding them to the standard checkout. Logged-in users bypass this step and go directly to checkout.
Requirements
- WordPress 6.0 or later
- WooCommerce 7.0 or later
- PHP 7.4+
Quick start
- Copy this plugin folder into your WordPress install at
wp-content/plugins/woocommerce-register-or-login. - Activate WooCommerce Register or Login Gateway from Plugins → Installed Plugins.
- Load your site once; the plugin auto-creates a published page named Confirm your checkout details (slug:
wc-register-or-login-gateway). - Visit the WooCommerce cart. Guest users are sent to the gateway page, while logged-in users go directly to WooCommerce checkout.
- Submit the form or use the “Skip and go straight to checkout” link to proceed.
- Configure behavior in WooCommerce → Settings → Accounts & Privacy → Register or Login Gateway.
Current capabilities
- Standard plugin scaffolding that only boots when WooCommerce is active.
- Automatic creation of the gateway page with a tailored content override.
- A responsive HTML form that captures email and lets shoppers choose sign-in or account creation intent with nonce protection.
- Privacy-first messaging that avoids explicit account-existence disclosure during gateway interactions.
- Existing customers receive one-time email magic links (15-minute expiry) and are logged in on link open.
- New customers can create an account on the spot with their chosen password, receive the standard WooCommerce “new account” email, and continue straight to checkout.
- Logged-in users bypass the gateway entirely, including direct visits to the gateway URL, and are redirected to checkout.
- Session persistence for partially completed forms plus a guarded fallback link to the native checkout URL.
- WooCommerce settings for gateway enable/disable, page selection, magic-link TTL, rate limits, and optional non-PII operational logging.
Next steps
- Cloudflare Turnstile support (deferred).