15

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.

markobarna
  • 189
  • 2
  • 2
  • 7

2 Answers2

33

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

helgatheviking
  • 25,596
  • 11
  • 95
  • 152
  • 4
    There is another step if you really want to lock down your checkout page and display the "You must be logged in to checkout" message. Go to the Accounts tab and uncheck the "Enable Registration on the Checkout Page" option, as shown here: https://businessbloomer.com/woocommerce-remove-move-loginregistration-checkout/ – ptmalcolm Apr 19 '17 at 16:18
  • 1
    This answer is out of date. See below – Bret Weinraub Mar 22 '19 at 21:24
0

There are three rows in wp_options that I suggest you set for this [recommended value]:

  • woocommerce_enable_guest_checkout [no]
  • woocommerce_enable_signup_and_login_from_checkout [yes]
  • woocommerce_enable_checkout_login_reminder [yes]

You can edit them in the admin console here:

/wp-admin/admin.php?page=wc-settings&tab=account

enter image description here

Bret Weinraub
  • 1,943
  • 15
  • 21