FX Subscription Downloads

osCommerce Contribution



Contents


Introduction

The Subscription Downloads contribution allows a store owner to offer downloads to a customer after purchasing a subscription to the products. The subscription itself is an actual product with attributes created in the osC store. The attributes of this subscription product, days max and download count, supply the criteria for all download products within the same category as the subscription product. If you create a subscription product with 30 days max, then a customer may download any of the products within the same category for 30 days free of charge after purchasing the subscription product. The download count attribute of the subscription product sets the number of free downloads allowed before a subscription purchase is necessary. So if you set the download count at 3, then a customer is allowed 3 free downloads of products within the same category before purchasing the subscription product.

Any file can be designated as the subscription product. Consider the unreal.zip file located in the downloads folder that comes with osC. Or simply create a txt file and upload it into the downloads folder. Bear in mind that the customer will not be able to download this file, it only sets the subscription values for all products within the same category.

The subscription will appear in the right column. You can see the addition on page 'catalog/includes/column_right.php'. This line of code can be moved if you have any experience with php and html.

Take special note - you may only add one subscription product per store.

The Subscription Downloads contribution utilizes two other osC contributions:

  1. Download Controller v5.3
  2. PayPal IPN v2.2

Both of these contributions are included with the Subscription Downloads contribution. Originally the Download Controller contribution required an sql file upload to the osC database. This sql file has been integrated into the Subscription Download install and is not necessary. The entire Subscription Download contribution including the Download Controller and Pay Pal IPN contributions can be installed and uninstalled from the Admin Panel by installing the Subscription Download contribution. The original Download Controller install package has been reconfigured to install the Download Controller contribution without the sql file upload. So you may uninstall the Subscription Download contribution, then install either the Download Controller, the PayPal IPN, or both and they will work as originally intended.


New and Changed Pages

For a complete list see the 'changelog.txt' included with this contribution.

Back to Top


Install

Backup! Backup! Backup!

  1. Copy the catalog folder included with the Free Downloads contribution over your root installation of osCommerce.
  2. Open Admin and go to Modules/Payment. Click on Subscription Payments to install.
  3. Go to Catalog. You may create a new category or use an existing one. The subscription product will apply to ALL products within a category.
  4. Create a new product within your category by clicking on the 'new product' button.
  5. On the page that opens create your subscription product as follows:
    1. In Stock - Yes
    2. Select Date Available
    3. Select Manufacturer
    4. Choose a name for your product (suggestion - Subscription)
    5. Enter a description (suggestion - ? Days of Unlimited Downloads!)
    6. Products Quantity - 1
    7. Upload an image that will represent your subscription
    8. Products Weight - 0
    9. Click on the 'preview' button
    10. If all is well click on the 'insert' button
  6. Under Catalog click on 'Products Attributes'
    1. Under Product Options create a new option for your subscription product (suggestion - Subscription to Downloads)
    2. Under Option Values select your new option from the drop down box then create a new value for this option (suggestion - ? Days)
    3. Under Products Attributes
      1. Select your subscription product from the drop down box.
      2. In the next box over, select your new product option.
      3. In the next box over select your new product value
      4. Under filename type in the bogus file (suggestion - unreal.zip)
      5. Under Expiry Days enter the number of days your subscription product will be valid after purchase
      6. Under Maximum download count enter the number of products a customer may download from this category free prior to purchasing a subscription
      7. Check the box Category subscription product, this will designate this product as the product that supplies all subscription values for every other product within the same category
      8. Click on the 'insert' button

    Back to Top


    Credits

    • Downloads Controller

    Written by Linda McGrath osCOMMERCE@WebMakers.com
    http://www.thewebmakerscorner.com
    Updated by Farrukh Saeed for MileStone MS 2.2

    • Pay Pal IPN Module

    Original Authors: Harald Ponce de Leon, Mark Evans osCommerce Team Members

    Updates by PandA.nl, Navyhost, Zoeticlight, David, gravyface, windfjf, Monika in Germany, AlexStudio and Terra

    • osCommerce Team

    For a well written program that was obviously a lot of work.
    The generosity and kindness to offer this product in open source to the public.