Good evening, I would like to know how I can prevent the change of status of an order to change the availability of a product, of course when the order is made must continue to download the availability, but if the order is canceled or refunded, it must not modify the availability.
This is because the product can be reimbursed before it comes into storage and not knowing the conditions I would not want it back for sale.