This is preserved as a warning! I couldn’t import the orders. I think its because I wanted to keep the ordered after some had been taken. My next attempt is to instill bare minimum plugins and posts.

For far too long my website has been falling over. God knows why. So I’m biting the bullet to rebuild it completely.

But every day or two I have to do a server reboot. I thought it might be AWS Lightsail so moved hosts. Still the same. So I moved it back. debug shows nothing. And there is nothing in server load to hint at a problem. So it can only be some legacy code or datapoint that is triggering a fault. I’m out of ideas. So a rebuild it is. I’m sticking with AWS Lightsail and the design. Some of the content is going to be re-written. Most images will be re-imported. I’m sticking with many of the active plugins, mostly because I use them all on other sites that don’t have the same issue.

  1. Spin up new WordPress instance. using bitnami on Lightsail. “staging.domain.com” is being used and SSL set up.
  2. Delete the plugins I don’t want. Add the plugin I need (but not activating yet).
  3. Activate Woocommerce.
  4. Amend the settings – including shipping zones
  5. Add all of products – by hand. My very original site had thousands of variation combinations, and I can’t help but wonder if that is at the root of it all, so woocommerce is a clean set up.
  6. Now activate the plugins I need.
  7. Activate Elementor and Elementor Pro
  8. Use the Hello Fresh theme (perhaps should have done that before Woocommerce, not sure)
  9. Build templates as I need them – some from the Elementor library, some copied and pasted from my original
  10. Rebuild the contact forms that I need
  11. Rebuild pages that I need.
  12. Make sure that all the relevant plugins are updated
  13. I took a lightsail snapshot/backup of the staging site. Just in case!
  14. On the current/live site, Install & activate WP ALL Export Pro (I hate having to pay for these, but it is far too painful to try to do it without a paid for plugin. I wasted days of my life before).
  15. Install and activate WPAE User Add On & WPAE Woocommerce Add On
  16. Export Woocommerce Customers (I’m not worried about the old subscribers)
  17. Export Woocommerce Orders
  18. Export Woocommerce Coupons (having done a massive clear out) – REMEMBER to select all the fields you need (ID, Name and Expiry isn’t enough!)
  19. Export posts (set categories)
  20. Now, on stag install the WP ALL Import plugins (and addons)
  21. Deep breath and touching wood….
  22. Import customers first
  23. I followed the code cust from this original post: http://www.mcgurl.co.uk/2023/09/19/migrating-woocommerce-and-preserving-order-id/
  24. BEWARE if you’re updating a user with the same creds as you’re logged in with!! create an admin that you can delete later.

THIS DIDN’T WORK. For the life of me I couldn’t get the orders to import. Let’s try again…..