Want to show the order failed message for other order status

This topic has 6 replies, 2 voices, and was last updated 11 months, 3 weeks ago ago by Luca Rossi

  • Avatar: Family Care
    Family Care
    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

    Please, contact administrator
    for this information.
    5 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: Family Care
    Family Care
    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: Family Care
    Family Care
    Participant
    December 27, 2024 at 13:48

    Thank you. it works

    Avatar: Justin
    Luca Rossi
    Support staff
    December 27, 2024 at 18:46

    Hi @Abdul Moiz,

    In the spirit of gratitude, we want to express our appreciation for your trust in our products. As a valued customer, your experience matters greatly. Would you consider sharing it by giving our theme a deserving 5-star rating on ThemeForest?

    Click here to share your thoughts: https://themeforest.net/downloads

    Being part of our community means a lot, and your feedback contributes immensely.

    Best Regards,
    The 8Theme Team

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Want to show the order failed message for other order status’' has been successfully resolved, and the topic is now closed for further responses

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