For OpenCart 2.3, 3.0, 4.0 and 4.1
How it works
- Tick a product under "Products with keys" and choose where its keys come from: a pool (keys you paste in, one per line) or generated (a new random key from a pattern such as XXXXX-XXXXX-XXXXX-XXXXX, where X is a letter or digit without look-alikes and # is a digit).
- When an order reaches a delivery status, every unit bought gets its own key. By default the shop's "complete" statuses deliver; you can tick any statuses instead. A key is given out once per unit, however often the order status changes afterwards.
- The customer gets an e-mail with the keys (the subject and the text above the keys are yours to edit and translate) and sees them on the order page in their account.
- It works together with the normal shop downloads: the module only adds the keys.
Pools
- Add keys in bulk: empty lines and keys that already exist for the product are skipped.
- The free key count turns amber at the number you set. You can stop selling when the pool is empty: a product cannot be added to the cart for more copies than there are free keys.
- If a paid order arrives and the pool is short, it gets the keys there are and shows under "Orders waiting for keys". As soon as you add keys, waiting orders are served automatically; you can also press "Assign now".
Control
- Revoke the keys of orders that reach statuses you choose (cancelled, refunded ...). Revoked keys show struck through to the customer, are never given out again, and come back if the order is delivered again.
- Revoke or restore a single key, delete a free key, search keys by text or order number, e-mail an order's keys again.
- A key checking address your software can call: it answers valid, revoked or unknown and names the product. A free key and a made-up key both answer unknown, and one visitor can make 30 checks in ten minutes.
For the store owner
- One admin page: settings, products with keys, add keys, keys list, orders waiting for keys, the checking address. Keys and what was given out are kept if you uninstall the module.
- Every storefront text is in one language file you can copy and translate. No core files are edited. Checked with the default theme and the Aurora theme.
Notes
- There is no activation limit (how many machines use a key) and no key expiry date.
- Download files are not handled by this module; use the shop's own download feature for the files.
- Keys are stored as plain text so you can read and search them.