Want to show the order failed message for other order status

This topic has 1 reply, 1 voice, and was last updated 10 hours, 53 minutes ago ago by Abdul Moiz

  • Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    December 26, 2024 at 12:18

    Hi,
    On thank you page after payment is done either failed or success from any payment gateway, I also want to show the same failed order message which is for failed for other statuses so I have changed the xstore code like this in xstore > woocommerce > checkout > thankyou.php page

    has_status( ‘failed’ ) || $order->has_status( ‘mwfailure’ ) || $order->has_status( ‘mwtimeout’ ) || $order->has_status( ‘mwpending’ ) || $order->has_status( ‘mwdropped’ ) || $order->has_status( ‘cardtimeout’ ) || $order->has_status( ‘migspending’ ) || $order->has_status( ‘migsfailure’ ) || $order->has_status( ‘migsdropped’ ) ) : ?>

    But as its not a good location as with update, it will be omitted so please help me achieve this somewhere else which I don’t know how to do it. Any suggestion or guidance will be highly appreciated.
    Check this video for explanation: https://monosnap.com/file/mMySyedAIknwUpiYYWKVWf7NnTM6UG

    Content is visible for topic creator and
    support staff only.
  • Viewing 1 results - 1 through 1 (of 1 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.