Merge pull request #5115 from thenbrent/woocommerce_no_available_payment_methods_filter

Add no_available_payment_methods_message filter
This commit is contained in:
Mike Jolley 2014-03-12 11:36:02 +00:00
commit 9164cca62f
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>';
}
?>