Add Woo notice class
Add class to "li"; Add "@codingStandardsIgnoreLine"; Formatting; Per new Woo template files.
This commit is contained in:
parent
f2bbfa8f3d
commit
ffd04f2f51
|
@ -73,13 +73,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
<?php if ( $order->needs_payment() ) : ?>
|
<?php if ( $order->needs_payment() ) : ?>
|
||||||
<ul class="wc_payment_methods payment_methods methods">
|
<ul class="wc_payment_methods payment_methods methods">
|
||||||
<?php
|
<?php
|
||||||
if ( ! empty( $available_gateways ) ) {
|
if ( ! empty( $available_gateways ) ) {
|
||||||
foreach ( $available_gateways as $gateway ) {
|
foreach ( $available_gateways as $gateway ) {
|
||||||
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo '<li>' . apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'understrap' ) ) . '</li>';
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
echo '<li class="woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'understrap' ) ) . '</li>'; // @codingStandardsIgnoreLine
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -28,13 +28,13 @@ if ( ! is_ajax() ) {
|
||||||
<?php if ( WC()->cart->needs_payment() ) : ?>
|
<?php if ( WC()->cart->needs_payment() ) : ?>
|
||||||
<ul class="wc_payment_methods payment_methods methods">
|
<ul class="wc_payment_methods payment_methods methods">
|
||||||
<?php
|
<?php
|
||||||
if ( ! empty( $available_gateways ) ) {
|
if ( ! empty( $available_gateways ) ) {
|
||||||
foreach ( $available_gateways as $gateway ) {
|
foreach ( $available_gateways as $gateway ) {
|
||||||
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo '<li>' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_country() ? __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'understrap' ) : __( 'Please fill in your details above to see available payment methods.', 'understrap' ) ) . '</li>';
|
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
echo '<li class="woocommerce-notice woocommerce-notice--info woocommerce-info">' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'understrap' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'understrap' ) ) . '</li>'; // @codingStandardsIgnoreLine
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
Reference in New Issue