Glossary Item Box
Viewing the Downloads Page
When your customer clicks the link to get to your downloads page, Squirrelcart looks for all Download Sections in your database. If a Rule Set is not assigned to the Download Section, that section is displayed. If a Rule Set is assigned, the Download Section is only displayed if the rules specified in the Rule Set pass validation.
Once a Download Section is found to display, all Downloads assigned to that section are located, and the same process is followed. If no Rule Set is assigned to the Download, it is shown. If a Rule Set is assigned, the Download only appears if the Rule Set validates.
Downloading
To prevent tampering, when a customer clicks a download link, the same process described above is followed before granting access to the file. If either the Download Section record's Rule Set OR the Download record's Rule Set fail to validate, the download is prohibited.
The link to download a file is not the full URL to the file that you have stored in your sc_data/downloads folder. The link will look something like this: http://www.example.com/store.php?downloads=1&id=123. In this example, 123 is the record number of the file that is being downloaded from the Files table.
Provided all rules pass validation, Squirrelcart opens the file inside your secure sc_data/downloads folder, and streams it to the customer using PHP.
![]() |
The Download module stores your source files in the downloads folder inside your sc_data folder. For this reason, it is very important that you configure Squirrelcart so that the sc_data folder is not web accessible. The most common location is to have it at the same level as the folder that contains your squirrelcart folder. This is explained in step 5 of the Installation > Uploading Files via FTP topic. |
© 2001-2017 Lighthouse Development. All Rights Reserved.