• Resolved santy4tas

    (@santy4tas)


    Hello dear people,

    I want to know how I can chnage the title of the order page. I use PayU payment gateway. When the payment is satisfactory, it redirects to the checkout page where the title of the page says “Order Received” and a woocommerce message says “Payment Approved by PayU”. On the other hand, when the payment fails, it redirects to the same page where a woocommerce message says “Payment Declined by PayU” BUT the page title says “Order Received”, I want to change this, I want if the payment fails the page title says “Payment Failed” how I can do it?

    Hope you can help me.

    Thank you so much in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    Hi there,

    The “Order Received” page is basically showing content conditionally, which means no matter if the the payment failed or not, the title will be the same but the content will be different (it’s using this file: https://github.com/woocommerce/woocommerce/blob/master/templates/checkout/thankyou.php).

    A simple workaround would be to open that page from the WP dashboard and simply use a more generic title like “Your Order” or “Order Process”, or whatever.

    Remi Corson

    (@corsonr)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order Received when payment fails’ is closed to new replies.