Invalid argument supplied for foreach(
-
Hi, I added 1 custom shipping field (state) to the checkout, and now this error is shown on the checkout page:
Warning: Invalid argument supplied for foreach() in /home/…/form-shipping.php on line 62
code is as follows (line 62 is <?php foreach….)
<div class="woocommerce-additional-fields__field-wrapper"> <?php foreach ( $checkout->get_checkout_fields( 'order' ) as $key => $field ) : ?> <?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?> <?php endforeach; ?> </div>Please let me know what I can do to solve the error, thanks!
– Kenneth
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Invalid argument supplied for foreach(’ is closed to new replies.

