Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
661 views
in Technique[技术] by (71.8m points)

wordpress - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...