How can I reset the limit automatically if the buyer cancels his order?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #100436
    pzoltan
    Guest

    Hi 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 you

    #100437
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    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.

    #100438
    pzoltan
    Guest

    Hi, 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.

    #100439
    Tom Anbinder
    Moderator
    Plugin Support

    Sorry, I meant “Delete & recalculate sales data” tool.

    #100440
    pzoltan
    Guest

    it 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 you

    #100441
    Tom Anbinder
    Moderator
    Plugin Support

    Well, 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.

    #100442
    pzoltan
    Guest

    Thank you so much!

    #100443
    pzoltan
    Guest

    Hi,

    Did you could do it?

    #100444
    Tom Anbinder
    Moderator
    Plugin Support

    Hi,

    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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.