DigiSeller is a micro web shop that allows you to quickly put a digital product up for sale. This article will guide you through the installation process.
DigiSeller's installation is simple and straightforward. You need to create three tables in your database, edit a configuration file, and upload the script via FTP. No fancy installation is necessary.
Unzipping the script archive
After purchasing DigiSeller from our site, you've downloaded a zip file containg the script. The first step is to unzip the archive somewhere on your hard drive. You end up with a script folder, which contains the script files, a developer folder, which contains the PSD file you can use if you want to radically change the design, and a install folder, which contains tables.sql, which you will need in the next step
Create the MySQL tables
The script doesn't come with an installer, so you will have to create the databases manually. Don't worry, it is quite simple actually. Open up your MySQL database with phpMyAdmin (or a different MySQL administration program) and paste the contents of install/tables.sql in the SQL tab. Executing the code will create the three tables that DigiSeller depends on - newsletter (for storing emails), ipn (for storing the results of IPN requests) and download_codes (for storing the temporary codes that are sent to buyers).
Open up script/private/php/config.php in your favorite code or text editor. In this file, you need to specify your paypal email address and your MySQL connection details, along with various other settings for the site. You must add your product (the file which you would like to sell) to the private/product/ folder and write the file name in the config file.
You can read a detailed description of the configuration options in this article.
After you are done configuring, you can proceed with uploading the contents of the script folder somewhere on your site. You can use the script as a standalone site by placing it directly in the root for your website folder (and not in a subfolder).
For uploading the folder to your hosting account, you can use any FTP client.
Testing in your browser
Open up the URL to which you uploaded the script. Everything should look as in the demo. Here is a quick troubleshooting guide if it doesn't:
- It shows a database error.
Make sure that the database connection details are correct! Also, check to see if the three tables are present in the database.
- It says that it can't find the download file.
You should place your digital download in the private/product folder and only give the filename (not the path) in the config file.
- The styling of the page is broken (the stylesheet is not found).
This tells you that the $siteURL setting is wrong. It should point to the URL at which you see the script (including the http:// part).
If everything looks fine, try to make a purchase of your product to make sure everything is working (you can lower the price to $0.01 for a test). You will need a second PayPal account for that, as it is not allowed to purchase from yourself.
Another thing worth testing, is whether your host can actually send emails. Often hosting providers limit or block outgoing email. You can test it by filling in the contact form of the script. If the email is not delivered, read here how to work around the problem.
Of course, you can also contact us if you run into something not mentioned here.