Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WooCommerce require registration to buy

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.

like image 682
markobarna Avatar asked Jul 14 '14 22:07

markobarna


People also ask

How do I enable registration in WooCommerce?

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.

How do I enable guest checkout in WooCommerce?

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.

How do I create a signup form in WooCommerce?

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.


1 Answers

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

enter image description here

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

Guest checkout options

like image 84
helgatheviking Avatar answered Nov 16 '22 00:11

helgatheviking