Add no_available_payment_methods_message filter

This commit is contained in:
thenbrent 2014-03-12 21:14:06 +10:00 committed by Mike Jolley
parent 1f9ec54e76
commit bf33ca51ba
1 changed files with 4 additions and 2 deletions

View File

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