Force User Registration before visitng Checkout Page

Is there any built in option available in Wordpress/WooCommerce which forces user to register/login before going to the checkout page?

There is an option in WooCommerce Settings Accounts Account Creation Allow customers to create an account during checkout

But this option not works if a non-logged in user visits a website, add item to the cart and go to the checkout page.

I want that user must register before viewing the checkout page or at least in the checkout page.

Thanks

Topic woocommerce-offtopic user-registration Wordpress

Category Web


If you have the:

"WooCommerce >> Settings >> Accounts >> Account Creation >> Allow customers to create an account during checkout" turned on

and

"WooCommerce >> Settings >> Accounts >> Account Creation >> Allow customers to place orders without an account" turned off.(see image below);

WooCommerce Setting Example

The non-logged in user will have to be registered to purchase the product and will be registered automatically with the information they put into the forms at checkout.

See here for the documentation on WooCommerce: https://docs.woocommerce.com/document/configuring-woocommerce-settings/

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.