reset next order number
-
i used these sql commands to get rid of orders
DELETE FROM wp_woocommerce_order_itemmeta
DELETE FROM wp_woocommerce_order_items
DELETE FROM wp_comments WHERE comment_type = ‘order_note’
DELETE FROM wp_postmeta WHERE post_id IN ( SELECT ID FROM wp_posts WHERE post_type =
DELETE FROM wp_posts WHERE post_type = ‘shop_order’but when i place an test order as customer the order number just keeps going up.
i have tried WooCommerce Sequential Order Numbers and Custom Order Numbers for WooCommerce
none of them worked, the least i would expect is the order number starting from a lower number
why are plugins the only recommended way? i know sql can be dangerous shit, but that is why we have backups
- The topic ‘reset next order number’ is closed to new replies.