WooCommerce, Remote Work & Other Fancy Stuff

Just another WordPress site

Conditionally Allow Customer Registration

November 10, 2020 by Will Leave a Comment

Please consider leaving a donation if you appreciate this information. Lightning network now available

A recent change in WooCommerce has resulted in some cases where customers may be unable to check out if their cart contains a subscription product. This happens if the “Allow customers to create an account during checkout” option is disabled in combination with WooCommerce Subscriptions requiring an account at checkout. Effectively, customers are locked out of the checkout page unless they log in. This also has an unfortunate side-effect of allowing folks who merchants would rather not have an account the opportunity to create that account.

The implementation of the WooCommerce provided filter named woocommerce_checkout_registration_enabled provides a way to take the behavior back to what may have been experienced with the earlier version of WooCommerce. See below:

Not sure what to do with code snippets? See What Do I Do With These Code Snippets?

Please consider leaving a donation if you appreciate this information. Lightning network now available

Filed Under: WooCommerce, WooCommerce Subscriptions Tagged With: snippet, snippets

Leave a Reply Cancel reply

You must be registered and logged in to post a comment.

© 2025 ยท WooCommerce, Remote Work & Other Fancy Stuff · Epstein didn't kill himself

We use cookies to ensure that we give you the best experience on our website. Continued use of this site is interpreted as your acceptance of our cookie policy.OkSee Our Cookie Policy