Downloads
BEWARE! This Contrib is being abandoned for the uc_file.module (now in latest Bazaar / core).
The functionality of this module is included, and improved upon, in the new Core module.
Admin note: This contribution was created by CpILL of Taylor Square Designs. Maintenance has been taken over by torgosPizza until digital products are worked into core.
The File product lets you associate files, in a chosen folder on the server, with SKU(s). When a product with one of these SKUs is purchased (and the purchase is confirmed) the customer will be presented with a link to download the file in their own private 'My files' section, a link to which appears under the navigation automatically when this module is enabled.
Requires the customer to be a logged-in user.
Languages:
- French by Mog
- English
Quick start
After you install Ubercart:
- Install the "File Product" module under 'admin/build/modules' and grouped under 'Ubercart - extra'.
- Configure the folder on the server where File Products will be looked for at 'admin/store/settings/file_product'. Its recommended that this be outside the web root (where your regular PHP and HTML files are kept) so they can't be directly downloaded.
- Associate SKUs with files via 'admin/store/products/file_products'.
When a customer purchases a product that has a File Product associated with its SKU, once the transaction has been confirmed (order status 'Processing' in order view), the file will appear in the users 'My files' link under 'Navigation'.
Change Log
- v1.7.4
- Changed the status update to check for "completed" or "payment received."
- v1.7.3
- Removed the uc_order_load($order) line, as it's not needed thanks to the new hook_order in Alpha 7e.
- v1.7.2
- $op in uc_file_cart_item is now 'can_ship' instead of 'shippable'.
- Restored directory structure for module files.
- v1.7.1
- Minor update to fix a file size error.
- Updated the hook_order implementation to work with new order statuses.
- v1.6
- Fixed a redirect bug in after you hit 'create' in the File product manager screen.
- v1.5
- Added the French translation files provided by Mog.
- v1.4
- Fixed a permissions bug which stopped the customer downloading if they didn't have the 'administer file products' permission. Thanks to Mog (not verified) for pointing it out.
- v1.3
- Fixed a bug that only listed one file for a given SKU instead if there was more than one file associated with it.
- Fixed a display bug in 'My files' table associated with the display of the file size column.
- Updated documentation here that the order state should be put into 'Processing' to trigger the the adding of file products to the orders user.
- v1.2
- Added changes as suggested by torgosPizza here
Development
| Preview | Attachment | Size |
|---|---|---|
| uc_file_product-1.7.4.zip | 16.7 KB |

It's based on SKU, so you can use the product attribute system to change the SKU when a customer selects the download option. Then when they've checked out, it will be treated either as a CD or as a download based on what they chose.


