I need to require a user registration before buying a product. Right now, when you add a product to the cart, then in the check out you can fill all the fields with your information but without a wordpress login. There is a simple option to create an account but is optional.
I'd like to know if is possible to modify the check out page to redirect a register page.
is it possible?
So if you wish to give any suggestion or any interesting link that will also be highly appreciable.
To begin, make sure that the WooCommerce registration forms are enabled on the account login page. For this, go to WooCommerce > Settings > Accounts and check Enable customer registration on the “My account” page. After enabling this option, you can see the WooCommerce registration form at the frontend.
Go to WooCommerce > Settings in your WordPress dashboard. Select the Accounts & Privacy tab on this page. Right at the top, you'll see the Guest checkout options. Make sure at least the first 'Allow customers to place orders without an account' is checked to enable guest checkout.
Go to User Registration->Settings and click on the WooCommerce tab. Then, select the WooCommerce registration form you created and Save Changes. Doing this will add User Registration form fields that are not available in the WooCommerce registration form to the Account details tab.
In your site's admin go to WooCommerce>Settings>Checkout ex:
http://yoursite.com/wp-admin/admin.php?page=wc-settings&tab=checkout
And make sure that "Enable guest checkout" is unchecked
UPDATE for WooCommmerce 3.4+
Pretty sure it was 3.4 when WooCommerce added it's privacy tools to help with GDPR compliance. This setting is now under
WooCommerce>Settings>Accounts&Privacy
or
wp-admin/admin.php?page=wc-settings&tab=account
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With