A
A
Alexis_D2019-07-02 08:30:41
WordPress
Alexis_D, 2019-07-02 08:30:41

WooCommerce payment form and shipping form not showing, how to fix?

Good day, I have an online store on WooCommerce, the problem is: the delivery and payment form is not displayed on the checkout page, I checked the code, everything seems to be in place

<div class="woocommerce-billing-fields__field-wrapper">
<?php
  $fields = $checkout->get_checkout_fields( 'billing' );

  foreach ( $fields as $key => $field ) {
    woocommerce_form_field( $key, $field, $checkout->get_value( $key ) );
  }
  ?>
</div>

but when I get to the checkout page, this form is not there, I check it with the code inspector and it simply shows:
<div class="woocommerce-billing-fields__field-wrapper"></div>

What could it be? Thanks in advance for your reply

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andrash_, 2019-07-02
@andrashsh

Install Query Monitor, look at php errors, requests.
print print_r($fields)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question