• Resolved robertrosanke

    (@robertrosanke)


    Hello.

    We have just tested the new customer notification for failed orders.
    This function is a great idea for the WooCommerce core.
    Then stores do not always have to manually integrate such a notification to customers into the system.

    We have noticed that there is no link to the payment page in the email sent.

    We would like customers to be able to go to the pay for order page from the email to change the failed payment method.

    We have established this workflow of simply redirecting the customer to the pay for order page for a while now and it works.
    It would be nice if there was a placeholder for the pay for order page link in the email content settings or if it was displayed by default in the body of the email.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Mahfuzur Rahman(woo-hc)

    (@mahfuzurwp)

    Hi @robertrosanke,

    Thanks for your feedback about adding a “Pay for Order” link to failed order emails! It’s a great suggestion.

    You can already do this by overriding the email template:

    1. Copy woocommerce/templates/emails/customer-failed-order.php from the WooCommerce plugin folder to your-theme/woocommerce/emails/customer-failed-order.php (creating the woocommerce/emails folders in your theme if they don’t exist).
    2. In the copied file, add this code where you want the link to appear:
    <p><?php esc_html_e( 'Please use the link below to retry the payment:', 'woocommerce' ); ?></p>
    <p><a href="<?php echo esc_url( $order->get_checkout_payment_url() ); ?>"><?php esc_html_e( 'Pay for Order', 'woocommerce' ); ?></a></p>
    

    This will dynamically generate the “Pay for Order” link.

    To suggest this as a default feature, please submit a feature request here: https://woocommerce.com/feature-requests/woocommerce/

    Important: Custom code is outside our support scope. Use this with your own discretion and ensure you have backups. If you’re not comfortable with code, consult a developer.

    Thanks again!

    Thread Starter robertrosanke

    (@robertrosanke)

    Hello @mahfuzurwp ,

    Thank you. I have created a feature request.

    We may implement your adaptation as an interim solution.
    Thanks for the help, ticket can be closed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.