Step 2: Setup the Paypal forms:
Because you are selling downloadable items your Paypal forms need to be hidden on the HTML pages. You will need to use Paypal generated code. The "return" page in the sample forms in the template are not hidden.
Login to your Paypal account. Click the "Merchant Services" tab. Click on the "Buy Now Buttons" icon or link. Or... You can paste the following link in your browser once you are logged into your Paypal account to find this area also:
In the form generator in your Paypal account, enter an "Item Name" for your product and then enter a "Price".
Scroll down the page and find the "Step 3: Customize advanced features (optional)" and click that area to open the options.
You will want to add a return page for the download page URL. Click the "Take customer to a specific page (URL) after checkout cancellation:" checkbox on and add your full return URL including the http://. Example:
http://your-domain.com/download/download-1.htm
Important Tips: When putting your return URL in the form be sure you copy this link and paste it in a browser address bar to test and make sure it is working so your return page shows up after an order. You do not need to add a cancel payment URL and it's best to leave all other areas on the form at the default.
Click on "Create Button" and you will see the following page:
There are a few variables in the code you have created, however, you only need 2 lines of code from this generated form to add to the template page. Click below to view:
Edit the "gallery1.htm" or "samples1.htm" Paypal form 1. Remove the 7 center lines of code leaving the top and bottom lines. Add your 2 lines of generated code. Click below for details.
Now test the Paypal form and be sure it is working.
Step 3: Setup the 2CO forms:
When selling downloadable items through 2CO, you will login to your 2CO account and add new products using the "products" link in your account. Example: Go to products. Select the "New Product" link. Fill in the form as shown below (edit 5 areas or more) and hit the "Create Product" button. This will be product number 1 if it is your first item you have added.
Now edit the code in the "gallery1.htm" or "samples1.htm". For example: find the first 2CO form and edit the 2 highlighted areas below. Replace the "sid" or "999999" with your 2CO store ID. Your store ID can be found at the top of the page in your "Set Up Products" area. Now edit the "product_id" or "999" with your product number. You have added product number one, so replace the "999" with "1". Save and test the form and it should be working.
<!-- START 2cO FORM 1 -->
<form method="post" action="https://www.2checkout.com/2co/buyer/purchase" style="margin: 0px">
<input type="hidden" name="sid" value="999999">
<input type="hidden" name="product_id" value="999">
<input type="hidden" name="quantity" value="1">
<input type="submit" value="Purchase from 2CO" onmouseover="this.className='buttonon-order'" onmouseout="this.className='button-order'" class="button-order"><br>
</form>
<!-- END 2cO FORM 1 -->
Step 4: Setup the download or "return" pages:
In the template "download" folder you will find a page called "download-1.htm" and a file called "download-1.zip". Replace the "download-1.zip" with your .zip file of your downloadable item. The "download-1.htm" is the only return page setup in the template. Edit this page exactly as you would like all your return pages to look, then make copies of this page for your other downloadable items.
Step 5: Setup the next product:
To setup the next product in the gallery or samples page, make a copy of the "download-1.htm" and rename it "download-2.htm". Edit the link in this new page copy to download the "download-2.zip" file and create a "download-2.zip" to put in the "download folder". Edit the second form in the gallery or samples page but be sure to set the return or "approved" link at 2CO and Paypal to go to the "download-2.htm" for your second product.
NOTES: The folder that contains your download pages, the "download" folder, is not password protected. In all auto download style templates, the 2CO link, once a client is "returned" to the download page, is coded or "hidden". The Paypal return link will be visible to the client after purchase is completed. For a more secure Paypal option you can check out the Payloadz website.
Be sure to upload the included "robots.txt" to keep search engines out of the "download" folder.
You can also have other file types downloadable such as PDF pages. Edit the link in the download-1.htm to change that.