Support » Plugin: WooCommerce Sequential Order Numbers » Gaps in order numbers, due to the auto-draft orders

  • Valdinia


    Somehow on my store I have a couple of orders with the post_status = ‘wc-auto-draft’
    The “WooCommerce Sequential Order Numbers” plugin takes them into account when it generates the next order number. So the new order instead of being number 9 it is number 11.
    Of course I will delete those auto-draft orders, but anyway, what can be done to avoid in the future the gaps in order numbers, gaps due to the auto-draft orders?

Viewing 1 replies (of 1 total)
  • Plugin Author SkyVerge


    Hey Valdinia!

    Simon here from the SkyVerge support team, thanks for reaching out!

    It’s a great question. I’ve taken a quick look into the plugin and can see that there is some code in there to take into account ‘auto-draft’ orders and exclude them from having a sequence number generated. I also wasn’t able to replicate this behavior locally on my test site.

    I confirmed by testing with the following steps:
    – running v1.8.3 of Sequential Order Numbers
    – in admin navigate to WooCommerce > Orders
    – click ‘Add Order’ and note the order number is not in sequence
    – navigate away from the page, and back to click ‘Add Order’ once again
    – note that the order number has increased but still not in sequence
    – repeated once more but this time completing adding the order
    – note the order is now in sequence

    With that said, I wonder if this could be a conflict of some kind on your site? My suggestion here would be to disable all plugins apart from WooCommerce and Sequential Order Numbers and test this behavior again to see if the issue still persists.

    If it does not, then this would seem that it could be a plugin conflict and you can enable them one by one to see which one it might be.

    If you’re still having problems after this or if the problem still persists with all other plugins disabled, please could you reach out to us via our contact form and we can take a deeper look into this for you!

    Could you let me know how you get on?


Viewing 1 replies (of 1 total)
  • The topic ‘Gaps in order numbers, due to the auto-draft orders’ is closed to new replies.