Hi @secretja,
Can you let me know which plugin you are using for Export/Import of orders? And could you tell me exactly how’re the things related to our plugin messed up?
Thread Starter
x1code
(@secretja)
Which ever I use, inbuild WordPress or Order Export & Order Import for WooCommerce. Order numbers aren’t right.
Hi @secretja,
To export the correct order id, you will need to change a bit of the code in “Order Export & Order Import for WooCommerce” plugin.
We do not change the original order id created by WooCommerce because that order id is used for many core functions and also by multiple plugins and themes.
So what you will have to do is, you will have to contact to support team of the third-party plugin and ask them to make the necessary changes. They will have to make the changes where Order ID is been fetched and have to use the below code for Custom Order Number instead of the code used for Order ID.
Here is the code they will need.
$custom_order_number = $order->get_order_number(); //where $order is an order object
Hope this helps!
I’ll be checking for WordPress Inbuil order export option and will get back to you with an update.
Hello, I’m having similar trouble.
The plugin I’m using to export and import the orders is “Order Export & Order Import for WooCommerce” by WebToffee
The exported csv of orders, contain both the order “ID” and the order “NUMBER”.
Order “ID” is the post ID woocommerce assigns, and the order “Number” is the number assigned by your custom order number plugin.
When imported, it shows on the screen, that order ID, and, order number are being imported, but only the order ID is shown in woocommerce.
If i import the orders without the order ID, it will use the plugin to assign a new order number, and the existing order number is seemingly discarded or overwritten.