Hi @farzster,
Thank you for reaching out.
We understand your requirement. Our plugin presently doesn’t offer any options to revert the order numbers. However, we can provide a custom code snippet to delete all the assigned sequential numbers from the database. After that, you can create a new series according to your need. Kindly follow the below-mentioned steps if this suffices for your requirement.
- Go to your active theme’s functions.php and copy the below-mentioned code snippet to delete the generated sequential order numbers.
delete_post_meta_by_key( '_order_number' );
- You can confirm it by refreshing the WooCommerce orders page (WooCommerce > Orders) once it is done.
- Remove the code from your active theme’s functions.php. (**Very Important**)
- Go to plugin settings (WooCommerce > Settings > Sequential Order Number) and set up a sequence according to your need.
Try this out and let us know if anything.
Thanks for the reply.
Will this affect the whole order number?
Thanks
Hi @farzster,
Thanks for getting back in touch.
The previously shared code will delete all the sequential order numbers generated by our plugin.