• Resolved gennie2000

    (@gennie2000)


    Hello,

    If I change the order status to be cancel, it will increase 2 stock.
    If change it to be refunded, it works properly, stock will increase 1.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Claudio Sanches

    (@claudiosanches)

    Not possible, this plugin it’s not able to increase two times.
    You should have some other code doing it.

    Thread Starter gennie2000

    (@gennie2000)

    Can you tell me how to edit the code to disable the increase stock after cancelled order?
    Because I already have increase stock function from other plugin.

    Thanks.

    Plugin Author Claudio Sanches

    (@claudiosanches)

    Why you can’t do it in the other plugin and let this plugin increasing and decreasing?

    Thread Starter gennie2000

    (@gennie2000)

    Because that plugin works for decreasing or increasing stock by user in front-end dashboard. It can not decrease stock in admin side. Both plugins I need.
    So would you please advise how to disable the increase stock after cancelled order, thanks very much!

    Plugin Author Claudio Sanches

    (@claudiosanches)

    Ok, but should be better you try the author for the other plugin, since the other plugin should increase only on the user front-end as you said.

    Plugin Author Claudio Sanches

    (@claudiosanches)

    Now you can update to version 1.0.1 and use the code function inside your theme’s functions.php:

    add_filter( 'rsmo_wc_increase_stock_statuses', '__return_empty_array' );
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cancel order will increase 2 stock’ is closed to new replies.