Merge pull request #5115 from thenbrent/woocommerce_no_available_payment_methods_filter
Add no_available_payment_methods_message filter
This commit is contained in:
commit
9164cca62f
|
@ -147,9 +147,11 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
} else {
|
||||
|
||||
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
|
||||
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