• when a user clicks cancel button for an order in my orders page after 5 minutes of placing his/her order I need to display a message that shows sorry this order has been dispatched and cannot be cancelled at this moment. I am new to this community and found below code in other link but not sure how it works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @tajmohamed30!

    How are you adding the “cancel” button to your order page? If you are using a plugin, can you please link us to the plugin so we can take a closer look?

    Also, are you saying that you need the message to show up instantly when the button is triggered, or somehow display after 5 minutes. If the latter, I am not sure how this would work as it would mean the user will need to stay on that page for 5 minutes until a notice pops up.

    Can you please elaborate a bit more and explain what your exact requirements are?

    Cheers!

    Thread Starter tajmohamed30

    (@tajmohamed30)

    Hi @rynald0s,

    Good Day!

    I am using WC cancel order plugin please refer below link

    https://wordpress.org/plugins/wc-cancel-order/

    FYI – My website is a butcher shop with no freezer concepts our products are the daily basis only.

    So when I get a delivery request the meats are dispatched within 5 minutes of time and once it got dispatched orders cannot be cancelled because the products are perishable.

    If a customer wants to cancel the order as no longer required/ordered by mistake they should be given 5 minutes of time from order time to do it.

    Currently, I use this plugin to have a cancel button in my orders page, I find it is easy to use but it is displaying forever

    My requirement is to have this cancel button with enabled ajax popup when clicked to display an error message after 5 minutes of order time (stating “sorry this order has been dispatched and cannot be cancelled at this moment please read terms and policies for more or contact us”) if this button is clicked.

    When posted this question I’m not sure where to post so have posted here

    Could you please help with the current requirement so that it can be done with this plugin or in woocommerce itself

    Thanks

    • This reply was modified 3 years, 9 months ago by tajmohamed30.
    Thread Starter tajmohamed30

    (@tajmohamed30)

    Its been couple of weeks went, any update on this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cancel button message on condition in my orders page’ is closed to new replies.