Support » Plugin: WooCommerce » problem of changing automatically orders from failed to cancelled

  • Resolved andrianiannalisa

    (@andrianiannalisayahooit)


    Hi there,
    I have a problem with orders that, due to session problems or other, are not paid by credit card and after 60 minutes, the order status does not change from failed to cancelled, but remains failed even after 60 minutes established in WooCommerce> Settings> Products> Inventory.

    The message that I see on the right side of orders is
    “Transaction failed order status changed from pending payment to failed”

    I’ve installed a plugin to see the cron jobs.
    woocommerce_cancel_unpaid_orders is set every 60 minutes, but after 2 days, the orders is still like FAILED and not Cancelled.
    How can the orders automatically changed?
    Best regards

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support con

    (@conschneider)

    Automattic Happiness Engineer

    Hi there,

    but remains failed even after 60 minutes established in WooCommerce> Settings> Products> Inventory.

    From what I see this is by design: https://docs.woocommerce.com/document/managing-orders/
    The cancelled status only applies to: “Canceled — Canceled by an admin or the customer – stock is increased, no further action required.”

    If you want the orders to move to cancelled, you need to add something that manages this for you.

    Kind regards,

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @andrianiannalisayahooit,

    remains failed even after 60 minutes established in WooCommerce> Settings> Products> Inventory.

    The Hold Stock timeout (WooCommerce > Settings > Inventory > Hold Stock) is applied to orders in the Pending status. When this limit is reached, the pending orders will be cancelled.

    I see that your inquiry was on Failed orders. As advised in the reply above, you could use tools that can automatically move Failed orders to the Cancelled status.
    One of such tools is AutomateWoo. If you’d like to get more info on it, you can check the documentation or create a presales ticket with us.

    Hope this helps.
    Thanks.

    Thread Starter andrianiannalisa

    (@andrianiannalisayahooit)

    Hi there,
    let me explian better…
    If I do not complete two orders within half an hour (interrupting or not completing the payment with the credit card for example), “woocommerce_cancel_unpaid_orders” appears in events-cron, but one of the two orders is automatically canceled and the other remains PENDING FOR PAYMENT even for days until I manually delete it.
    It seems that “woocommerce_cancel_unpaid_orders” only works once and after 60 minutes it stops to work
    Best regards

    Thread Starter andrianiannalisa

    (@andrianiannalisayahooit)

    `Hi there,
    I tried to deactivate all the plugins and also to change the theme.
    The only thing I’ve noticed from wp control is that

    woocommerce_cancel_unpaid_orders

    appears only after having deactivated and reactivated WOOCOMMERCE, and after the time scheduled it change the status of only ONE order PENDING PAYMENT. The other orders in PENDING PAYMENT, remains in PENDING PAYMENT.

    It seems that it process only one order.
    Best regards

    Plugin Support abwaita a11n

    (@abwaita)

    Thanks for the explanation @andrianiannalisayahooit.

    Just to check, when you go to WooCommerce → Tools → Scheduled Actions, do you find some failed actions related to woocommerce_cancel_unpaid_orders?

    If so, you may want to loop in your host on this to check if there’s anything preventing their execution on their side.

    Let us know what you find.
    Thanks.

    Thread Starter andrianiannalisa

    (@andrianiannalisayahooit)

    Hi there,
    No, in Scheduled Actions there aren’t failed actions related to woocommerce_cancel_unpaid_orders.
    In the pending action there’s only woocommerce_cleanup_draft_orders.
    See the screen
    https://ibb.co/Y3LGd7t

    Plugin Support abwaita a11n

    (@abwaita)

    Thanks for getting back.

    That would indicate that the scheduled actions are working okay.

    One more check, when you open these persisting Pending orders, which payment methods were used to pay for them? Could they have been placed either with Cash on Delivery or Direct Bank Transfer?

    Thanks.

    Thread Starter andrianiannalisa

    (@andrianiannalisayahooit)

    No.
    They are not paid by credit card, but the transaction is not completed or because there is not enough credit in the credit card, or because the bank has not authorized the transaction or because the credit card data is not entered and therefore the payment it is not completed.

    Plugin Support abwaita a11n

    (@abwaita)

    We appreciate the clarifications.

    It would seem that in such cases, the payment transactions would fail, thus the order status would be Failed rather than Pending. Note that the cancellation due to the Hold Stock timeout occurs for the Pending orders.

    Maybe you could share a screenshot of the order notes of one order that’s in Pending status and has not been canceled so that we can assess further. Be sure to blur any sensitive details in the order notes.

    Thanks.

    Thread Starter andrianiannalisa

    (@andrianiannalisayahooit)

    Hi there
    thank you for your valuable help.
    In the pending order thare aren’t notes.
    Here you are the screen

    https://ibb.co/XVTq6w2

    Best regards

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @andrianiannalisayahooit,

    Thanks for sending the screenshot. I see that the payment was by credit card.

    the transaction is not completed or because there is not enough credit in the credit card, or because the bank has not authorized the transaction or because the credit card data is not entered and therefore the payment it is not completed.

    Putting together the pieces, normally, the payment gateway that’s processing the transaction should set such orders to Failed rather than Pending payment as illustrated below:


    Link to image.

    Further, there ought to be some accompanying order notes from the payment gateway plugin explaining the cause of the payment failure.

    Thus, given the info at hand, I would suggest reaching the payment plugin to see if their plugin is functioning as intended.

    Thanks.

    Thread Starter andrianiannalisa

    (@andrianiannalisayahooit)

    Hi there,
    Ok, thank you very much for your information.
    I will contact the developer of the credit card plugin.
    Best regards

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘problem of changing automatically orders from failed to cancelled’ is closed to new replies.