=== ArchiveMaster - Auto Archive and Export Old Orders for WooCommerce  ===
Contributors: archivemaster, sharifdev, sahabuddinsgr, shahreyar46
Tags: archive, archives, woocommerce orders, export orders 
Requires at least: 6.2
Tested up to: 7.0
Stable tag: 1.12.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Archive old WooCommerce orders to speed up your site and keep your database lean. Move historical orders to local DB, cloud, or even Google Drive.

==Description==

[Homepage](https://lnk.wppool.dev/e1vYDSU) | [Documentation](https://lnk.wppool.dev/eh79dkr) | [Tutorials](https://www.youtube.com/playlist?list=PLd6WEu38CQSwm5SoWlHuN-s000aZWTQZA) | [ Live Demo](https://lnk.wppool.dev/9gHaTpn)

Optimize your WooCommerce store and store old data in a local or any remote database. With ArchiveMaster, easily archive old orders, export order data, and streamline database performance. Managing order history is no longer a hassle! 

https://www.youtube.com/watch?v=xn6Go6XMUOQ&t=18s

**Let’s grow, connect, and thrive together!**

* **🤝 Join Our [Facebook Community](https://lnk.wppool.dev/BD2m3rf)**
* **🌐 Follow Us on [X (Twitter)](https://x.com/wppool_)**
* **🎥 Subscribe on [YouTube](https://www.youtube.com/@WPPOOL)**
* **👍 Like Our [Facebook Page](https://www.facebook.com/wppool.dev)**

== Why Do You Need Archive Master? ==

Historical orders take up a lot of space in your database over time, consuming valuable storage and impacting performance. **Each time WooCommerce runs its functions, it also processes these older, less-relevant records, increasing query load and slowing down your site.**

Archive Master takes care of the rest, ensuring that only active, necessary data remains in your primary database. 🚀

Upgrade to smarter data management. It maintains a smart, high-performance WooCommerce store by efficiently offloading old data. Keep your site fast, your store efficient, and your customers satisfied. 

Previous order data takes up a lot of space in your database. And every time WooCommerce's functionalities are loading, the order queries also load, making your site's performance slower. 

[✨ Try Live Demo](https://lnk.wppool.dev/9gHaTpn) | [⚡ Get the Premium Version](https://lnk.wppool.dev/eZFN0CG) |  🤝 [Join Our Facebook Community](https://lnk.wppool.dev/BD2m3rf)

== Archive Master Plugin Helps You Achieve: ==

* **Optimized Database Performance:** Archiving previous orders keeps your WooCommerce database optimized, improving store speed and user experience.
* **Declutter Database:** Archiving old orders removes unnecessary data from your active database, keeping it clean and organized for better query performance and faster operations.
* **Bloat-Free Database:**  Moving historical orders to separate storage prevents database bloat, ensuring your WooCommerce store maintains optimal size and runs efficiently.
* **Store Old Data Securely:** Move your old data into your local storage without affecting site performance or to a remote database and access them anytime you want without ever needing to worry about data loss.
* **Efficient Data Management:** Move outdated orders to a separate database in your local storage, or to a remote database, making organizing and accessing essential data easier.
* **Improved Store Speed:** A lightweight database reduces load times, ensuring a faster, more responsive shopping experience for your customers.
* **Reduced Storage Costs:** Free up space by archiving old orders, lowering storage expenses, and streamlining database maintenance.
* **Easily Configurable Settings:** Set custom time frames for order archiving and manage storage locations with ease.
* **Export or Download WooCommerce Orders:** Effortlessly export your orders into widely used formats such as CSV, JSON, XML, etc. Choose your preferred format and download order details in just a few clicks.


[✨ Try Live Demo](https://lnk.wppool.dev/9gHaTpn) | [⚡ Get the Premium Version](https://lnk.wppool.dev/eZFN0CG) |  🤝 [Join Our Facebook Community](https://lnk.wppool.dev/BD2m3rf)


== 🔝 Archive Master Free Features ==

* **🗃️ Local Database Archive:** Archive WooCommerce orders from any chosen date range (e.g., 7 days, 15 days, 1 month, etc). Orders will be securely transferred to your website's local storage.

* **🛢️Remote Database Archive:** Archive WooCommerce orders in your preferred database. Select your Amazon RDS database and choose a date range (e.g., 7 days, 15 days, 1 month, etc), and orders will be securely archived to your database.

* **🎯One-Click Order Archiving with Visual Insights:**
Effortlessly monitor past orders with a real-time pie chart and a convenient one-click archiving feature. Visualize your previous orders at a glance and archive them seamlessly with just a single click.

* **🔎 Search Archived Orders:** Search the archived orders from the WooCommerce orders page. The orders will be displayed with an "Archived" order status

* **🏷️Search Archived Orders by Metadata:** Archive orders can be searched by custom metadata.

* **🔙 Unarchive Orders:**Need to access archived order data? With just a few clicks, you can restore archived WooCommerce orders in bulk from your local or connected database anytime you need them.

* **⏭️ Skip Archiving Active Subscription/Membership Orders:**
Archiving subscription or membership orders used to disrupt renewal payments. You can skip archiving active subscription/membership orders to ensure renewals keep working seamlessly. Archive Master can detect orders from the plugins listed below and prevent them from being archived.
**Supported plugins:**
🡪 WooCommerce Subscriptions
🡪 WooCommerce Memberships
🡪 YITH WooCommerce Subscriptions
🡪 Subscriptions for WooCommerce
🡪 Memberships for WooCommerce

* **📋Allow Customers to View Archived Orders:** Give customers the ability to view their archived order history from their My Account page. Admins can easily toggle this visibility on or off through the settings. 

* **🎯 Archive by Specific Order Status:** Choose specifically which orders you want to archive by selecting specific order statuses. For example, archive only “Completed” orders while keeping others untouched.

* **🧾 Archive Orders from Order Page:** Users can easily archive WooCommerce orders directly from the Order Details page.

* **📚 Bulk Archive Orders from Order List Page:** Select multiple orders from your WooCommerce Orders page and archive them instantly using the Bulk Actions dropdown.

* **📅 Filter Archived Orders by Date, Day & Status:** Quickly view what you need by filtering archived orders based on date, day, or order status. Only matching archived orders will be displayed, keeping things organized and accessible.

* **🗑️ Permanently Delete Archived Orders:**  You can now permanently delete your archived orders. *NB: Once deleted, they’re gone for good and cannot be restored.*

* **📦 Manage Old Orders:** View and manage archived orders anytime from WooCommerce, with easy one-click restoration to keep your store organized and efficient!

* **🛠️ Smart Order ID Conflict Handling:**  When restoring archived orders, the system automatically detects any ID conflicts with existing orders. You’ll get a prompt with options to assign a new ID to the archived order or skip it, ensuring a smooth and error-free unarchiving process.

* **📥 Export WooCommerce Orders:** Export orders in CSV, JSON, XML, and PDF for easy backup. Simply go to the plugin’s download option to save all or selected orders!

* **💾 Export Archived Orders:** Easily back up your archived orders in JSON or XML format. Just navigate to the Archived Orders section in the plugin and click "Export Orders" to download your data in seconds.

* **🌍 Translation Ready:** Archive Master is fully translatable! We’ve included a *.pot* file, which means you can translate the plugin into your preferred language using popular translation plugins like Loco Translate or WPML.

[✨ Try Live Demo](https://lnk.wppool.dev/9gHaTpn) | [⚡ Get the Premium Version](https://lnk.wppool.dev/eZFN0CG) |  🤝 [Join Our Facebook Community](https://lnk.wppool.dev/BD2m3rf)

== 👑 ArchiveMaster Pro Features ==

* **❇️Archive to Google Drive:** Connect your Google account to archive orders directly to the Drive and easily unarchive them anytime.

* **🗄️Archive to Custom MySQL Database:** You can configure a custom MySQL server to store archived order data. You have the flexibility to connect to the same database or use any external MySQL database. Giving you full control over where you want archive your data. 
 
* **🔄Auto-Archive Old Orders:** Set automated schedules for archiving historical orders with the plugin’s auto-archive option, keeping your WooCommerce database clean and optimized.

* **⚡️No Restriction on Order Range:** You can archive any old orders without any restrictions!

* **📊Analytics for Archived Orders:** Enable archived orders in WooCommerce Analytics to generate complete and accurate reports whenever needed.

* **🌪️Advanced Order Filtering:** Archive orders by product category. You can archive your orders by selecting 'product category' and archiving specific orders. More filtering options are coming soon..

* **📇Archive Custom Metadata:** Archive custom metadata stored by other plugins along with your orders. Normally, only default order data is archived, but with this feature, you can ensure all relevant custom data is safely stored.

* **📆Custom Date Selection for Archiving Orders:** You can select a custom date, and orders up to that date will be archived to the chosen database.

* **🎯Archive by Custom Order Status:** You can select and archive orders based on your own custom order statuses, giving you complete flexibility over your order archiving process.

* **💾Export Archived Orders in CSV:** Navigate to the Archived Orders section and click "Export Orders" to export and download in CSV format

== ⏰ ArchiveMaster Upcoming Features ==

* **🔜 Expanded Archive Database Support (Upcoming):** Archive your previous orders and data to more cloud-based storage options, One Drive, Dropbox, Amazon S3, Backblaze, Hetzner, A2 Hosting, and more. Archive old orders and data to remote databases, including Google Cloud SQL, Microsoft Azure, Digital Ocean, and more.

* **🗄️ Content Archiving (Upcoming):** Easily archive WordPress Media, WooCommerce Products, Posts, and Custom Post Types to keep your site organized and optimized. Suitable for managing large content libraries and enhancing site performance.

[✨ Try Live Demo](https://lnk.wppool.dev/9gHaTpn) | [⚡ Get the Premium Version](https://lnk.wppool.dev/eZFN0CG) |  🤝 [Join Our Facebook Community](https://lnk.wppool.dev/BD2m3rf)

== Installation ==

1. Navigate to WordPress Dashboard > Plugins > Add New. Search for “ArchiveMaster” and activate the plugin.
2. Access the plugin from the left sidebar of the WordPress dashboard.
3. In the ArchiveMaster interface, easily manage your past orders by archiving old orders for better organization or exporting them as a file for backup

Learn more about how Archive Master works through our overview video.

https://youtu.be/TFSn1cuZS3E?list=PLd6WEu38CQSwm5SoWlHuN-s000aZWTQZA

== 🔥 More Awesome Plugins ==
If you like ArchiveMaster, then consider checking out our other projects:

* 🛒 **[FlexOrder - Order Sync with Google Sheet for WooCommerce](https://lnk.wppool.dev/gWV8px3)**: Manage orders from Google Sheets. WooCommerce order sync, e-commerce order management, and sales order management with Google Sheets. Try Flex Order now!

* 🔄 **[FlexStock - Stock Sync with Google Sheet for WooCommerce](https://wordpress.org/plugins/stock-sync-with-google-sheet-for-woocommerce/)**: Auto-sync WooCommerce products from Google Sheets. Flex Stock is an easy, powerful, and simple inventory management system to handle your WooCommerce products.

* 🎁 **[EchoRewards](https://wordpress.org/plugins/echo-rewards/)**: With Echo Reward, you can refer a friend for WooCommerce to launch your customer referral program. Echo Rewards Referral Plugin is a WooCommerce referral plugin to boost your sales. Generate coupons, reward customers, and launch the ideal refer-a-friend program for your store.

* 🌓 **[WP Dark Mode](https://wordpress.org/plugins/wp-dark-mode/)**: Use WP Dark Mode plugin to create a stunning dark version for your WordPress website. WP Dark Mode works automatically without going into any complicated settings.

* 💬 **[FormyChat](https://wordpress.org/plugins/social-contact-form/)**: Connect Form to Chat Apps with Contact Form 7, WPForms, Gravity Form | Welcome Popup & Multi-agent Live Chat


== Privacy Policy == 
Archive Master uses [Appsero](https://appsero.com) SDK to collect some telemetry data upon user's confirmation. This helps us to troubleshoot problems faster & make product improvements.

Appsero SDK **does not gather any data by default.** The SDK only starts gathering basic telemetry data **when a user allows it via the admin notice**. We collect the data to ensure a great user experience for all our users. 

Integrating Appsero SDK **DOES NOT IMMEDIATELY** start gathering data, **without confirmation from users in any case.**

Learn more about how [Appsero collects and uses this data](https://appsero.com/privacy-policy/).

== Frequently Asked Questions ==

= Do I need to know any programming language for using this plugin? =
No coding knowledge is required for using this plugin.
= How do I archive my old orders data from my store database? =
The easiest way to archive old orders data from your store database is through the Archive Master plugin. Install and activate the plugin and reduce load from your store.
= Where do I contact for support? =
Please use the official [WordPress support forum](https://wordpress.org/support/plugin/archive-master/) to report your issues.

== Changelog ==

= 1.12.7 - 09 Jul 2026 =
* **Enhancement:** Improved Reports Analytics for archived orders

= 1.12.6 - 24 Jun 2026 =
* **Fix:** Minor bug fixes and enhancements

= 1.12.5 - 08 Jun 2026 =
* **Fix:** WooCommerce Analytics now updates instantly when orders are unarchived, with accurate data reflected across all filter modes without requiring a background sync.

= 1.12.4 - 24 May 2026 =
* **Fix:** Improved PHP compatibility for PHP 7.4+ by adding graceful version handling, PHP 8 polyfills, and updating plugin requirements
* **Improvement:** Added compatibility support for WordPress 7.0

= 1.12.3 - 23 Apr 2026 =
* **Improvement:** Regular maintenance with refined user interface

= 1.12.2 - 05 Apr 2026 =
* **Fix:** Resolved translation issues in multilingual support for popular languages.

= 1.12.1 – 01 Apr 2026 =
**New:** Added multilingual support for popular languages through integration of .po and .mo files
**Fix:** Resolved archive execution timeout issues that stopped the archiving process

= 1.12.0 – 10 Mar 2026 =
* **Fix:** Slow archiving and unarchiving for Google Drive storage have been resolved
* **Fix:** Fixed an issue where order confirmation emails were resent when orders were unarchived

= 1.11.0 – 24 Feb 2026 =
* **New (Advanced filtering :fire:):** Filter orders by product category before archiving
* **New (Custom metadata archiving):** Custom metadata related to orders can now be archived
* **New:** Archived orders can now be searched by custom metadata
* **Improvement:** Improved the archiving and order filtering process
* **Fix:** Fixed log messages being generated when WP_DEBUG is disabled
* **Fix:** Resolved compatibility issues with the FlexOrder plugin

= 1.10.0 – 13 Jan 2026 =
* **New (Analytics Support):** Analytics for both live and archived orders are now available in the WooCommerce Analytics dashboard
* **New**: Orders can now be archived directly from the order details page
* **New**: Multiple orders can be selected and archived in bulk from the WooCommerce orders page
* **Improvement:** The WooCommerce orders page now displays the total number of archived orders
* **Fix:** The original IP address of an order is preserved when archiving or unarchiving
* **Fix:** Database credentials for custom MySQL databases are now securely encrypted before being stored

**For older changelog entries, please see the [additional changelog.txt file](https://plugins.svn.wordpress.org/archive-master/trunk/changelog.txt) delivered with the plugin.**