Add no_available_payment_methods_message filter
This commit is contained in:
parent
8238739987
commit
bcd3c71c7d
|
@ -147,9 +147,11 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if ( ! WC()->customer->get_country() )
|
if ( ! WC()->customer->get_country() )
|
||||||
echo '<p>' . __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) . '</p>';
|
$no_gateways_message = __( 'Please fill in your details above to see available payment methods.', 'woocommerce' );
|
||||||
else
|
else
|
||||||
echo '<p>' . __( '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.', 'woocommerce' ) . '</p>';
|
$no_gateways_message = __( '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.', 'woocommerce' );
|
||||||
|
|
||||||
|
echo '<p>' . apply_filters( 'woocommerce_no_available_payment_methods_message', $no_gateways_message ) . '</p>';
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue