Want to show the order failed message for other order status

This topic has 5 replies, 2 voices, and was last updated 1 hours, 1 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.
    4 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    December 27, 2024 at 05:49

    Dear @Abdul Moiz,

    We hope this message finds you well.

    In this case, we kindly request you to install the XStore Child theme, which can be downloaded from the following link: https://www.8theme.com/account/.

    Once the child theme is installed, please copy the thankyou.php file to the following directory:
    xstore-child > woocommerce > checkout > thankyou.php

    By doing so, your changes will remain secure and unaffected by any future updates.

    Should you have any questions or require further assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    December 27, 2024 at 07:03

    Thanks for the guidance. Now, child theme is already installed but with few files only and not this file. Please review. Do you think copying only this file by creating a directory in child theme checkout > thankyou.php in woocommerce will work for our existing setup. Here is the screen recording if you wanna review this or same you can in our wordpress: https://monosnap.com/file/j3fITDWtkOWNQihTfzOeH1ANOOkSg7

    Avatar: Justin
    Luca Rossi
    Support staff
    December 27, 2024 at 10:30

    Dear Abdul Moiz,

    We noticed that the thankyou.php file is currently missing from your child theme, as shown in the following screenshot: https://prnt.sc/7CcXXoqFSDhE.

    Could you kindly copy this file from the parent theme to the corresponding directory in your child theme?

    Thank you for your attention to this matter. Please feel free to reach out if you have any questions or need further assistance.

    Best regards,
    The 8Theme Team

    Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    December 27, 2024 at 13:48

    Thank you. it works

  • Viewing 5 results - 1 through 5 (of 5 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.