WPIntell

Source evidence

Resetting numbering

Sequential Order Number for WooCommerce · support · 2025-01-15T21:44:00+00:00

mixedsentiment
mediumseverity
0.84relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 21 rows with source links

23.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

16 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
barnabas1 resolved
Hello, I did a few test orders on my store and then I wanted to delete them and tried resetting the numbering to the number right after the last live order. However it was not working. So I went in the database to find what options are stored there. In the wp_options table the wp_sequence_order_number_start was set to 5617 which is what I wanted. The wp_last_order_number option though it had a value of 5621 which included the 5 test orders I placed 5617-5621. I tried resetting the wp_last_order_number to 5617 as well but the next order came in with number 5622. So I achieved nothing. Can you please help on how I should reset the numbering after placing and deleting test orders? I noticed that the meta keys _order_number associated with the deleted orders they were still present in the postmeta table. I don’t if this is the problem? Hi @barnabas1 , Thanks for reaching out. The plugin works on an incremental counter, meaning that deleting orders from the front end will not delete the corresponding order numbers generated. The plugin uses the meta key _order_number to store the sequential order number in the post-meta table. To reset the order numbers: Delete the test order numbers present in the _order_number metakey in the post meta table from your database. Update the wt_last_order_number meta value in the database to your desired next order number. Please ensure you enter only the numeric value without any suffix, prefix, or padding. After updating the database, set the next order number value in the plugin’s start number field from the front end by navigating to: WooCommerce > Settings > Sequential Order Number . Once done, the new sequential order numbers will continue from the updated value. Thank you for the detailed response. Much appreciated. Kind regards, Barnabas Hi @barnabas1 , Glad to have helped with your query. If you like the plugin and support, please leave us a review here . It would really help us spread the word. Thanks in advance! You have my best review already, thanks you! Hello, After trying this it didn’t really work. Did you miss any step by any chance in what you wrote above? Hi @barnabas1 , You may follow the same steps as mentioned earlier; however, we missed informing you that you would need to delete the _order_number meta key present in the wp_wc_orders_meta and the wp_postmeta table.

Comments

7 shown
barnabas1 2025-01-15T21:53:00+00:00

I noticed that the meta keys _order_number associated with the deleted orders they were still present in the postmeta table. I don’t if this is the problem?

WebToffee Support 2025-01-17T05:00:00+00:00

Hi @barnabas1 , Thanks for reaching out. The plugin works on an incremental counter, meaning that deleting orders from the front end will not delete the corresponding order numbers generated. The plugin uses the meta key _order_number to store the sequential order number in the post-meta table. To reset the order numbers: Delete the test order numbers present in the _order_number metakey in the post meta table from your database. Update the wt_last_order_number meta value in the database to your desired next order number. Please ensure you enter only the numeric value without any suffix, prefix, or padding. After updating the database, set the next order number value in the plugin’s start number field from the front end by navigating to: WooCommerce > Settings > Sequential Order Number . Once done, the new sequential order numbers will continue from the updated value.

barnabas1 2025-01-22T14:49:00+00:00

Thank you for the detailed response. Much appreciated. Kind regards, Barnabas

WebToffee Support 2025-01-24T16:31:00+00:00

Hi @barnabas1 , Glad to have helped with your query. If you like the plugin and support, please leave us a review here . It would really help us spread the word. Thanks in advance!

barnabas1 2025-01-24T18:51:00+00:00

You have my best review already, thanks you!

barnabas1 2025-01-30T14:51:00+00:00

Hello, After trying this it didn’t really work. Did you miss any step by any chance in what you wrote above?

WebToffee Support 2025-02-05T04:51:00+00:00

Hi @barnabas1 , You may follow the same steps as mentioned earlier; however, we missed informing you that you would need to delete the _order_number meta key present in the wp_wc_orders_meta and the wp_postmeta table.