Answer the question
In order to leave comments, you need to log in
How to display only certain Checkout fields?
By default in Woocommerce, in the form-billing.php file, all form fields that I edited through Saphali WC are called.
<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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question