Top WooCommerce & WordPress Plugins › Forums › Maximum Products per User for WooCommerce › How can I reset the limit automatically if the buyer cancels his order?
- Support forum for the Maximum Products per User for WooCommerce.
- This topic has 8 replies, 2 voices, and was last updated 3 years, 1 month ago by
Tom Anbinder.
- AuthorPosts
- September 9, 2020 at 4:30 pm #100436
pzoltan
GuestHi There,
I have set a limit 5 for a product category. This part works very well.
If the buyer cancels his order, the purchase limit will not change. In this case, this purchase option is not revoked.
What could be the solution?
Thank youSeptember 10, 2020 at 12:24 pm #100437Hi,
Sorry for the late reply. Yes, I’m aware of the problem – already working on it. I’m planning to add an option to select order statuses to decrease amounts in the next plugin version. Meanwhile, you can either manually edit sales data on the user’s profile page, or run the plugin’s “recalculate data” tool which will skip canceled orders automatically.
September 10, 2020 at 12:49 pm #100438pzoltan
GuestHi, thanks for the reply.
The manual edit working fine, but the “recalculate data” does not skip the cancelled order, not change the purchase limit.
Thanks.September 10, 2020 at 12:55 pm #100439Sorry, I meant “Delete & recalculate sales data” tool.
September 10, 2020 at 1:20 pm #100440pzoltan
Guestit will not delete previous purchase limit?
can i solve this somehow automated? I have 4-5 orders a day that are canceled, manual edit take a lot of time.
Thank youSeptember 10, 2020 at 4:34 pm #100441Well, it will delete data, but after that it will go through all the orders in your system, and recount all data (while skipping the canceled orders), so it all should be ok after the tool finishes. I could add an option to make this tool recurring/automated, but to be honest, I don’t think it’s the right way – it will go through all your orders again and again, and this will take too much unnecessary resources. Please give me a couple of days or so to implement it correctly, i.e. by adding special action when some order is canceled.
September 10, 2020 at 6:11 pm #100442pzoltan
GuestThank you so much!
October 13, 2020 at 3:40 pm #100443pzoltan
GuestHi,
Did you could do it?
October 13, 2020 at 11:52 pm #100444Hi,
Yes, I believe I did. Sorry for not notifying you here about this. In plugin v3.3.0 (released on 2020-10-08), I’ve added “Order statuses: Delete” option to our plugin’s “General” settings section. Please take a look and let me know what you think.
- AuthorPosts
- You must be logged in to reply to this topic.