Configuring Digital Download Products
In the Product Editor under any variant, check Digital Product and configure:
- Storage Destination: Local Storage (
publicdisk, max 50 MB upload), Global Amazon S3 (.env), Custom S3 Credentials (with optional CloudFront CDN URL override), or a Direct Download URL. - Access Limits: Set maximum download attempts (
downloads_max_allowed), expiration window in days (or leave blank for lifetime access), and custom badge text (defaults to "Digital Item (Instant Download)").
Dual-UUID Security & Chunked Direct Streaming
Every purchased downloadable line item receives an auto-generated UUIDv4 (order_detail_external_id) paired with the parent order's UUID (order_external_id) at GET /downloads/{orderDetail}/{token}. Each download request enforces a 5-step server gate:
- Validates both UUID tokens match the order and line item.
- Verifies the order is in a paid/fulfilled status.
- Confirms the item is downloadable and has not passed
download_expiration. - Confirms
downloads_counter < downloads_max_allowed. - Logs a timestamped audit entry in
order_downloads.
When using a Direct Download URL, Site Store Pro proxies the remote file through a memory-safe 1 MB chunked stream (streamDownload) instead of redirecting—keeping your upstream URL hidden while preventing PHP memory exhaustion on large files.
Gated Digital Content & Content Access Tokens
To sell access to courses, webinars, or members-only CMS pages:
- Create a gated CMS page in
/admin/cms-pagesand assign the product under Required Product Purchase (and optionally set Exclude From Search). - In the Product Editor's Advanced Settings, enter the CMS page URL in Post-Order Completion Redirect and customize the button label (e.g., "Watch Webinar").
- Upon purchase, Site Store Pro generates a unique Content Access Token (
/content-access/{token}) included in confirmation emails and receipts. Clicking the link grants session purchase-gate access even for guest buyers without logging in, and admins can edit expiry or regenerate tokens anytime from Order Details.