• Resolved Matteo

    (@reovero)


    Hi, i want to share with you a logical bug that happen inside the thankyou page flow.
    I have checked that there is this code inside your plugin:

    add_action ( ‘woocommerce_thankyou’,
    ‘wpowp_update_order_status_pending’);

    Occasionally in my shop I found orders that had the status completed, again in processing.
    Doing various tests I discovered that by reloading the thanyou page via link, this function always starts, which also changes a completed order by putting it into processing.

    Could you change this function by adding an if that first checks if the order is in completed status? Because obviously if an order is completed you don’t need to change its status.

    Thank you
    Matteo

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Logical bug inside thankyou page hook’ is closed to new replies.