Tweak wording

This commit is contained in:
Mike Jolley 2017-11-15 11:04:20 +00:00
parent 9558c49e72
commit bb2e506a2b
2 changed files with 1 additions and 3 deletions

View File

@ -56,5 +56,5 @@ if ( $available_gateways = WC()->payment_gateways->get_available_payment_gateway
</div>
</form>
<?php else : ?>
<p class="woocommerce-notice woocommerce-notice--info woocommerce-info"><?php esc_html_e( 'Sorry, it seems that there are no payment methods which support adding a new payment method. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ); ?></p>
<p class="woocommerce-notice woocommerce-notice--info woocommerce-info"><?php esc_html_e( 'New payment methods can only be added during checkout. Please contact us if you require assistance.', 'woocommerce' ); ?></p>
<?php endif; ?>

View File

@ -78,6 +78,4 @@ do_action( 'woocommerce_before_account_payment_methods', $has_methods ); ?>
<?php if ( WC()->payment_gateways->get_available_payment_gateways() ) : ?>
<a class="button" href="<?php echo esc_url( wc_get_endpoint_url( 'add-payment-method' ) ); ?>"><?php esc_html_e( 'Add payment method', 'woocommerce' ); ?></a>
<?php else : ?>
<p class="woocommerce-Message woocommerce-Message--info woocommerce-info"><?php esc_html_e( 'New payment methods cannot be added from the My Account page.', 'woocommerce' ); ?></p>
<?php endif; ?>