Add no_available_payment_methods_message filter

This commit is contained in:
thenbrent 2014-03-12 21:14:06 +10:00
parent 8238739987
commit bcd3c71c7d
1 changed files with 4 additions and 2 deletions

View File

@ -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>';
} }
?> ?>