Shows the "customer pay page" link for any order that needs payment
This commit is contained in:
parent
4a9807b56a
commit
37c441dc45
|
@ -201,7 +201,7 @@ class WC_Meta_Box_Order_Data {
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="form-field form-field-wide wc-order-status"><label for="order_status"><?php _e( 'Order status:', 'woocommerce' ) ?> <?php
|
<p class="form-field form-field-wide wc-order-status"><label for="order_status"><?php _e( 'Order status:', 'woocommerce' ) ?> <?php
|
||||||
if ( $order->has_status( 'pending' ) ) {
|
if ( $order->needs_payment() ) {
|
||||||
printf( '<a href="%s">%s →</a>',
|
printf( '<a href="%s">%s →</a>',
|
||||||
esc_url( $order->get_checkout_payment_url() ),
|
esc_url( $order->get_checkout_payment_url() ),
|
||||||
__( 'Customer payment page', 'woocommerce' )
|
__( 'Customer payment page', 'woocommerce' )
|
||||||
|
|
Loading…
Reference in New Issue