Orders, Discounts & Reporting

Selling Digital Downloads and Gated Content Access Pages

Published 2026-12-04 03:20:21

Configuring Digital Download Products

In the Product Editor under any variant, check Digital Product and configure:

  • Storage Destination: Local Storage (public disk, 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:

  1. Validates both UUID tokens match the order and line item.
  2. Verifies the order is in a paid/fulfilled status.
  3. Confirms the item is downloadable and has not passed download_expiration.
  4. Confirms downloads_counter < downloads_max_allowed.
  5. 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:

  1. Create a gated CMS page in /admin/cms-pages and assign the product under Required Product Purchase (and optionally set Exclude From Search).
  2. 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").
  3. 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.

Was this article helpful?

Let us know how we can improve our documentation.