Merge pull request #3975 from samuelaguilera/patch-1
Changed id for payment_method_$gateway from <input> to <li>
This commit is contained in:
commit
c3aba912db
|
@ -131,8 +131,8 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
|
||||
foreach ( $available_gateways as $gateway ) {
|
||||
?>
|
||||
<li>
|
||||
<input type="radio" id="payment_method_<?php echo $gateway->id; ?>" class="input-radio" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> />
|
||||
<li id="payment_method_<?php echo $gateway->id; ?>" >
|
||||
<input type="radio" class="input-radio" name="payment_method" value="<?php echo esc_attr( $gateway->id ); ?>" <?php checked( $gateway->chosen, true ); ?> />
|
||||
<label for="payment_method_<?php echo $gateway->id; ?>"><?php echo $gateway->get_title(); ?> <?php echo $gateway->get_icon(); ?></label>
|
||||
<?php
|
||||
if ( $gateway->has_fields() || $gateway->get_description() ) :
|
||||
|
@ -187,4 +187,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
|
||||
<?php do_action( 'woocommerce_review_order_after_payment' ); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue