From bcd3c71c7dd7fb9b76546cf41e025ef55c4b681f Mon Sep 17 00:00:00 2001 From: thenbrent Date: Wed, 12 Mar 2014 21:14:06 +1000 Subject: [PATCH] Add no_available_payment_methods_message filter --- templates/checkout/review-order.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/checkout/review-order.php b/templates/checkout/review-order.php index 882fac72c6c..fdcb8b26afd 100644 --- a/templates/checkout/review-order.php +++ b/templates/checkout/review-order.php @@ -147,9 +147,11 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly } else { if ( ! WC()->customer->get_country() ) - echo '

' . __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) . '

'; + $no_gateways_message = __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ); else - echo '

' . __( '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' ) . '

'; + $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 '

' . apply_filters( 'woocommerce_no_available_payment_methods_message', $no_gateways_message ) . '

'; } ?>