=== DownloadVault for WooCommerce ===
Contributors: therssoftware
Tags: woocommerce, digital downloads, secure downloads, link masking, download manager
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protect your digital files, prevent link sharing, and give customers a beautiful download vault for their WooCommerce digital purchases.

== Description ==

Stop file piracy and elevate your digital shop experience! **DownloadVault for WooCommerce** replaces default, vulnerable direct file links with an encrypted, expirable token system and provides your customers with a modern, high-tech **Customer Asset Vault**.

Whether you sell eBooks, software, audio files, design templates, video courses, or digital assets, DownloadVault ensures your intellectual property stays protected while delivering a first-class customer experience.

[Live Demo](https://wpdemo.test/plugins/downloadvault/) | [Documentation](https://wpdemo.test/plugins/downloadvault/) | [Upgrade to Pro](https://wpdemo.test/plugins/downloadvault/)

### 🛡️ Free Core Features:

* 🔐 **Secure Link Masking & Encryption:** Never expose your raw server file URLs. Download links are generated as dynamic cryptographically-hashed tokens that expire after configurable hours or download limits.
* 💼 **Modern Customer Asset Vault:** Transforms the dated WooCommerce "My Account > Downloads" tab into a sleek card/grid vault with search, file size badges, and download counter.
* 📄 **Dynamic Forensic PDF Watermarking:** Stamps customer name, purchase email, order ID, and transaction date directly onto downloaded PDF pages (bottom margin, top margin, or diagonal watermark) to deter piracy.
* 💸 **Pay-What-You-Want (PWYW) Pricing:** Gumroad-style open pricing engine allowing customers to name their price or tip with suggested price tiers and minimum thresholds.
* ⚡ **100% Digital Cart Checkout Optimizer:** Automatically removes unnecessary shipping and billing address fields during checkout when carts contain only digital downloads, minimizing checkout friction.
* 📦 **Order Received & Thank You Card:** Renders a prominent, high-converting download access card right on the WooCommerce order confirmation screen.
* 🧲 **Built-In 1-Click Lead Magnet Engine:** Offer free sample files, PDF chapters, or trial assets in exchange for visitor name and email to rapidly build your marketing list.
* 📊 **Download Logs & Analytics:** Track customer downloads, timestamps, file names, and IP addresses directly in your WP Admin.
* 🚀 **HPOS & WooCommerce Blocks Compatible:** 100% compatible with WooCommerce High-Performance Order Storage and Checkout Blocks.

---

### 👑 Premium Features (DownloadVault Pro):

Need enterprise-grade cloud storage infrastructure and automated licensing? DownloadVault Pro unlocks:

* ☁️ **Cloud Storage Integration (Cloudflare R2 & AWS S3):** Stream high-bandwidth downloads directly through Cloudflare R2, Amazon AWS S3, or DigitalOcean Spaces using presigned time-limited secure URLs, saving massive server bandwidth.
* 🔑 **Automatic Software License Key Generation:** Generate unique activation license keys upon completed orders with custom prefixes, activation limits, and remote REST verification.
* 🗜️ **1-Click Bulk ZIP Download:** Let buyers download all digital assets in their order as a single compressed archive.
* 🎵 **Audio & Video Protection:** Forensic tagging and time-limited stream tokens for media creators.

[Learn more about DownloadVault Pro & Pricing](https://wpdemo.test/plugins/downloadvault/)

---

== External Services ==

This plugin does not connect to any third-party services, external servers, or remote APIs. All link encryption, file delivery, PDF watermarking, and analytics logging are performed locally on your WordPress server.

== Installation ==

1. In your WordPress Admin, navigate to **Plugins > Add New**.
2. Search for `DownloadVault for WooCommerce`.
3. Click **Install Now**, then click **Activate**.
4. Navigate to **DownloadVault** in your WordPress admin menu.
5. Configure your link expiration hours, watermarking, and vault display options under **Settings**.
6. Attach downloadable files to your WooCommerce products under **Product Data > General > Downloadable Files** as usual.
7. DownloadVault automatically takes over link security and provides the modern vault to your customers!

== Frequently Asked Questions ==

= How does DownloadVault protect my files from being shared? =
Instead of linking directly to files stored on your server, DownloadVault generates an encrypted, single-use token. Once the token expires (e.g., after 24 hours or X downloads), the link stops working, preventing buyers from sharing download links on forums or social media.

= Can customers access their downloads anytime? =
Yes! When logged in to their WooCommerce account, customers can visit their **Customer Asset Vault** anytime to generate fresh, authenticated download tokens for products they have purchased.

= Does it support large files? =
Yes! DownloadVault uses chunked output streaming to serve large files efficiently without exhausting server PHP memory limits.

= Is WooCommerce HPOS supported? =
Yes! DownloadVault fully supports WooCommerce High-Performance Order Storage (HPOS) and WooCommerce Cart & Checkout Blocks.

== Screenshots ==

1. **WP Admin Security Dashboard:** Link masking rules, token expiration hours, and customer download security settings.
2. **Customer Asset Vault:** Clean modern grid display in customer My Account area with file sizes and download status.
3. **Forensic PDF Watermarking:** Stamped buyer identification on PDF pages.
4. **Checkout Optimizer:** Clean 1-step checkout with address fields stripped for 100% digital carts.
5. **Download History Log:** Complete audit trail of customer download activity.

== Changelog ==

= 1.0.0 =
* Initial official release on WordPress.org.
* Secure expirable link masking and token generation.
* Modern Customer Asset Vault in WooCommerce My Account.
* Native forensic PDF watermarking engine.
* Pay-What-You-Want open pricing engine.
* 100% digital cart checkout optimizer.
* Order confirmation download card.
* Built-in lead magnet opt-in engine.
* Full WooCommerce HPOS compatibility.
