Incorrect nesting of account fields

This commit is contained in:
Mike Jolley 2017-02-28 09:26:59 +00:00
parent fd94ce74bc
commit d390aca2d5
1 changed files with 14 additions and 16 deletions

View File

@ -44,9 +44,8 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php do_action( 'woocommerce_after_checkout_billing_form', $checkout ); ?>
</div>
<div class="woocommerce-account-fields">
<?php if ( ! is_user_logged_in() && $checkout->is_registration_enabled() ) : ?>
<div class="woocommerce-account-fields">
<?php if ( ! $checkout->is_registration_required() ) : ?>
<p class="form-row form-row-wide create-account">
@ -57,8 +56,6 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php endif; ?>
<?php endif; ?>
<?php do_action( 'woocommerce_before_checkout_registration_form', $checkout ); ?>
<?php if ( $checkout->get_checkout_fields( 'account' ) ) : ?>
@ -77,3 +74,4 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php do_action( 'woocommerce_after_checkout_registration_form', $checkout ); ?>
</div>
<?php endif; ?>