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?