Skip to content

Commit

Permalink
fix(modal-checkout): tweak HTML to satisfy Woo Payments field validation
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Sep 16, 2024
1 parent f0c0726 commit bb4b5d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modal-checkout/templates/checkout-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@
</select>
<span id="select2-billing_state-container" style="display:none;"></span>
<?php else : ?>
<input type="hidden" id="<?php echo esc_attr( 'billing_' . $key ); ?>" name="<?php echo esc_attr( 'billing_' . $key ); ?>" value="<?php echo esc_attr( $value ); ?>" />
<?php // Satisfy HTML structure for Woo Payments field validation. ?>
<span class="form-row" style="display:none;">
<input type="hidden" id="<?php echo esc_attr( 'billing_' . $key ); ?>" name="<?php echo esc_attr( 'billing_' . $key ); ?>" value="<?php echo esc_attr( $value ); ?>" />
</span>
<?php endif; ?>
<?php endforeach; ?>

Expand Down

0 comments on commit bb4b5d4

Please sign in to comment.