Remove "sizeof"
Per new Woo template files. Add's "get_checkout_fields".
This commit is contained in:
parent
98570c67dd
commit
5726d56bcf
|
@ -34,7 +34,7 @@ if ( ! $checkout->is_registration_enabled() && $checkout->is_registration_requir
|
||||||
|
|
||||||
<form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url( wc_get_checkout_url() ); ?>" enctype="multipart/form-data">
|
<form name="checkout" method="post" class="checkout woocommerce-checkout" action="<?php echo esc_url( wc_get_checkout_url() ); ?>" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php if ( sizeof( $checkout->checkout_fields ) > 0 ) : ?>
|
<?php if ( $checkout->get_checkout_fields() ) : ?>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_checkout_before_customer_details' ); ?>
|
<?php do_action( 'woocommerce_checkout_before_customer_details' ); ?>
|
||||||
|
|
||||||
|
|
Reference in New Issue