Include link to order in PayPal refund email, for convenience

Includes a link to the relevant order in the PayPal refund email, so that the shop owner doesn't have to manually bring up the dashboard, search the for order, and click through.
This commit is contained in:
David Anderson 2015-11-25 22:07:52 +00:00
parent f9756b29f1
commit febaeb8b63
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class WC_Gateway_Paypal_IPN_Handler extends WC_Gateway_Paypal_Response {
$order->update_status( 'on-hold', sprintf( __( 'Payment %s via IPN.', 'woocommerce' ), wc_clean( $posted['payment_status'] ) ) );
$this->send_ipn_email_notification(
sprintf( __( 'Payment for order #%s reversed', 'woocommerce' ), $order->get_order_number() ),
sprintf( __( 'Payment for order %s refunded/reversed', 'woocommerce' ), '<a class="link" href="' . admin_url( 'post.php?post=' . $order->id . '&action=edit' ).'">#' . $order->get_order_number() . '</a>' ),
sprintf( __( 'Order #%s has been marked on-hold due to a reversal - PayPal reason code: %s', 'woocommerce' ), $order->get_order_number(), wc_clean( $posted['reason_code'] ) )
);
}