Change registration check

Updated to reflect new Woo files.
This commit is contained in:
Unknown 2018-03-22 14:04:49 -06:00 committed by zachary
parent 347cd43793
commit 98570c67dd
1 changed files with 1 additions and 1 deletions

View File

@ -24,8 +24,8 @@ wc_print_notices();
do_action( 'woocommerce_before_checkout_form', $checkout ); do_action( 'woocommerce_before_checkout_form', $checkout );
if ( ! $checkout->enable_signup && ! $checkout->enable_guest_checkout && ! is_user_logged_in() ) {
// If checkout registration is disabled and not logged in, the user cannot checkout // If checkout registration is disabled and not logged in, the user cannot checkout
if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_required() && ! is_user_logged_in() ) {
echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'understrap' ) ); echo apply_filters( 'woocommerce_checkout_must_be_logged_in_message', __( 'You must be logged in to checkout.', 'understrap' ) );
return; return;
} }