• Resolved farzster

    (@farzster)


    Dear Admin

    I unchecked the box “Enable to apply the above format for all existing orders.”
    “Leave it unchecked to apply number format only for new orders.”

    Then after that all the order number changed. Is there any way i can undo/revert back to previous order number? Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WebToffee

    (@webtoffee)

    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.

    1. 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' );
    2. You can confirm it by refreshing the WooCommerce orders page (WooCommerce > Orders) once it is done.
    3. Remove the code from your active theme’s functions.php. (**Very Important**)
    4. 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.

    Thread Starter farzster

    (@farzster)

    Thanks for the reply.

    Will this affect the whole order number?

    Thanks

    Plugin Author WebToffee

    (@webtoffee)

    Hi @farzster,

    Thanks for getting back in touch.

    The previously shared code will delete all the sequential order numbers generated by our plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Revert to Previous Order Number’ is closed to new replies.