• Resolved sylwiaofwarsaw

    (@sylwiaofwarsaw)


    Hello,

    thanks for this great plugin! I’m setting it up right now and I encountered the following problem:

    Say, I have one product in an attribute and someone buys this product, the stock goes to from 1 to 0. But let’s say this person didn’t accept the product’s delivery and it returns to me. I then delete the person’s order but the attribute stock doesn’t return to 1. Could you fix it?

    Best,

    Sylwia

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mewz

    (@mewz)

    Hi @sylwiaofwarsaw!

    Ordinarily if a product is returned the item would be refunded in the order (if applicable) rather than deleting the order. In this case the attribute stock will be restored.

    In any case, it definitely should also restore the stock if the order is deleted. Thank you for pointing this out ??

    We’ll be sure to release a fix for this soon!

    Thread Starter sylwiaofwarsaw

    (@sylwiaofwarsaw)

    Thank you so much!

    Plugin Author Mewz

    (@mewz)

    Hi again @sylwiaofwarsaw,

    Upon further investigation of this issue, it seems the default behaviour of WooCommerce is to not restore stock when simply deleting an order. Stock will only be restored when refunding the order, or when updating the order status to Cancelled.

    Since our plugin already follows this behaviour, no further changes will be made to the core functionality. If you specifically need this feature, it can be added using WordPress hooks (in PHP).

    Thanks again for your feedback. If there’s anything else we can assist you with, please let us know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deleting Orders’ is closed to new replies.