How to sell downloadable files in whmcs






















Namespaces Page Discussion. Views Read View source View history. Navigation Main page Recent changes Random page Help. This page was last modified on 21 June , at This is useful if you want to offer software, templates or other files for purchasing. With the download distribution, WHMCS will automatically handle the download permissions and only allow the items to be downloaded by customers that purchase the associated required product and only when that product is active in their account.

You need to begin by adding the download to the support center downloads section. This is shown in the screenshot below:. This is done from the Other tab. You can select multiple downloads to be associated with a product by single clicking each item in the "Available Files" menu. A client who holds this product will be able to download the files appearing in the "Selected Files" menu. This is shown below:. We recommend storing into a database for ease of updating and retrieval, but flat files can work just as well.

Note: The module create function of this module does not generate a username and password by design. This generally indicates that the licensing checking code is not passing a license key back to the licensing addon.

The code being used will need to be corrected to ensure that it is returning the full license key to WHMCS. The first step will be to provide the user with a cURL test script that attempts to connect to your WHMCS installation and run it from their server, correcting any detected issues.

If that all appears clear, it could be due to a SSL configuration issue on the user's server. As a workaround, you can potentially add the following into your licence checking code:. This behaviour suggests that the local licence key returned by the license checking function after a successful check is not being stored. When no local licence key is stored and passed into the licensing checking function, a remote check has to be performed and a new local key is generated.

Storing the local license key returned by the license checking function and passing it back into the checking function should resolve this. We recommend storing it in a way most appropriate for your particular software, for example in a flat file or in a database. Was this article helpful? Yes No.



0コメント

  • 1000 / 1000