Title: order_key problem
Last modified: January 24, 2024

---

# order_key problem

 *  Resolved [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/)
 * Hello, I want to transfer a large number of orders, but first I did tests, I 
   found that through the orders section, the user cannot download his file, after
   further investigation, I found that when a purchase is transferred, your plugin
   Does not make order_key!
 * A normal download link when a natural or manual order is created:
   `site.com/?
   download_file=28092&order=**wc_order_wrgr6sz89Kpfh**...`
 * A download link when generated by your plugin:
   `site.com/?download_file=28092&
   order=**_order_key**...`
 * I tried different ways, I created a column and put wc_order_wrgr6sz89Kpfh and
   other random stuff, I put “1” or left it blank, no matter what I did this order_key
   was not generated by your plugin! Is this a bug?
 * WooCommerce version: 8.4.0 (I did not update WooCommerce to the latest version
   because I saw many bug reports)
 * Order Export & Order Import for WooCommerce version: 2.4.7
 * Im not getting any error in error_log

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17370414)
 * my csv file:
 * ![](https://biaupload.com/do.php?imgf=org-36377cb725cd1.png)
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17372284)
 * Hi [@vtrn](https://wordpress.org/support/users/vtrn/),
   Thank you for reaching
   out to us.
 * Could you share sample CSV files for the product and order after removing sensitive
   information so that we can take a look at it? You may share the CSV file by uploading
   it to Google Drive, WeTransfer, or any similar service and sharing the link with
   us.
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17372856)
 * Hi [@webtoffeesupport](https://wordpress.org/support/users/webtoffeesupport/)
   thank you for helping me,
 * I tested this on two sites (even on a new wordpress), what I think:
   This problem
   is from the plugin or from the csv file and its settings
 * [Download The csv file I want to import](https://drive.google.com/file/d/1oG12sTuzEQgtIJ_9EaF0ehvkBo2Sbuy4/view?usp=sharing)
 * [Download Product csv file with all fields](https://drive.google.com/file/d/1t0eBc__oeP4APghgEfWbjpDkoyiNyMzu/view?usp=sharing)
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17381080)
 * Hi [@vtrn](https://wordpress.org/support/users/vtrn/),
 * We tried importing the CSV file you provided in our testing environment, but 
   we were unable to replicate the issue. While importing in our testing environment,
   the product ID was the same as the import file. However, in your case, the products
   might have been imported with new product IDs due to post-ID conflict, hence 
   the orders may not be linked properly with the products.
 * To address this, you can try adding SKUs to your products on your export site,
   migrating the products, and orders again. When importing orders, you can use 
   the option “Link products using SKU instead of product ID.” This way, even if
   the product IDs change during import, the orders will be correctly linked to 
   the products based on their SKUs.
 * Alternatively, you may check the current product ID of the products and update
   the order import CSV file with the new product IDs and then try updating the 
   orders again.
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17381298)
 * you are saying that after importing the csv file of the order I gave, on the 
   product that I gave the csv, the order_key was created? without any changes?
 * We have no problem identifying the product with the product ID! As I said, I 
   created a product on a new site and imported the csv file.
   Everything is right,
   the order is made, the product is right! The order is completely correct, only
   the order_key is not created!
 * Of course, I must also say that we do not export orders from another WooCommerce
   site, we make them ourselves!
   I plan to transfer orders from an edd site to a
   WooCommerce site, I will receive the csv file from edd and upload it as your 
   plugin accepts! It means exactly according to the sample csv file that I sent
   you!Products are manually and pre-imported!**Are you sure that you only imported
   with the csv file I gave you and that the order_key was created for that order?**
   To make sure that the order_key has been created or not, you can go to the orders
   section in my-account and download the purchased download file, and here you 
   will encounter an error because the order_key has not been created!
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17383955)
 * Hi [@vtrn](https://wordpress.org/support/users/vtrn/),
 * Yes, we were able to generate the order_key after importing the files provided
   by you. When importing an order, if there is no order_key present in the import
   CSV file, as in your case, the order key will be automatically generated by our
   plugin. Additionally, we were also able to download the product from the site.
 * In order to replicate your environment, could you please share your system status
   log[ via support](https://www.webtoffee.com/contact/)?
 *  Thread Starter [vtrn](https://wordpress.org/support/users/vtrn/)
 * (@vtrn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17389097)
 * [my system status log](https://drive.google.com/file/d/1gP9cILdD9FKxwfQJg07rmWYPutYaEFRS/view?usp=sharing)
 * [how i imported video](https://drive.google.com/file/d/1ry0t28p07KKS3c1pWl6O8XUIvjUmT8Ya/view?usp=sharing)
 * If you need more, like access, let me know
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17390420)
 * Hi [@vtrn](https://wordpress.org/support/users/vtrn/),
 * We tried replicating your environment and importing the file you shared, but 
   we were unable to replicate the issue. Sharing your site access here is against
   the forum guidelines, and we do not recommend you sharing your site access here
   as this is a public forum.
 * However, we have made a small change in how the order_key is generated. Since
   we cannot share the plugin zip file here, you may contact our support to get 
   the plugin zip file.
 * You can contact Supoort by clicking** [here](https://www.webtoffee.com/contact/)**.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘order_key problem’ is closed to new replies.

 * ![](https://ps.w.org/order-import-export-for-woocommerce/assets/icon-256x256.
   gif?rev=3133964)
 * [Order Export & Order Import for WooCommerce](https://wordpress.org/plugins/order-import-export-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/order-import-export-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/order-import-export-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/order-import-export-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/order-import-export-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/order-import-export-for-woocommerce/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/order_key-problem/#post-17390420)
 * Status: resolved