patmak Posted February 28, 2005 Share Posted February 28, 2005 Hi Everyone, I'm trying to allow customers to download a software program after purchasing and I'm running into some difficulty. I've done the setup as below (I think), but I still can't seem to get the download file to come up after purchasing. Any suggestions? The "Download" link allows customer downloading of products after they are purchased. Download The products to be downloaded after purchase are put in the catalog/download folder. The catalog/download folder will be read from the "pub" folder. Make sure the /catalog/pub folder is 777 and /catalog/download folder is 755 and these files in catalog/includes/configure.php have the forward slash: define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); The configuration for the Download section is: ? Enable download ? Download by redirect ? Expiry delay (days) ? Maximum number of downloads After the product is added go to the "Product Attributes" section under the "Catalog" heading in admin. Choose the product in the bottom "Product Attributes" box. When you choose a product and have download enabled in the configuration section you will see a box below the "Product Attributes" section where you can add the name of the product to download. Again make sure the pub directory has permissions of 777. Link to comment Share on other sites More sharing options...
OceanRanch Posted February 28, 2005 Share Posted February 28, 2005 A couple of thoughts.... Triple check the permissions on download and pub folders. Did you add the download "attribute" to the product? Does the dropdown show on the product description? Have you set the order status to "delivered"? Is filename exact? (upper and lower case count). Tom Link to comment Share on other sites More sharing options...
patmak Posted February 28, 2005 Author Share Posted February 28, 2005 A couple of thoughts.... Triple check the permissions on download and pub folders. Did you add the download "attribute" to the product? Does the dropdown show on the product description? Have you set the order status to "delivered"? Is filename exact? (upper and lower case count). Tom <{POST_SNAPBACK}> Thanks Tom, Maybe I'm going about this all wrong. In the administration/configuration/download section of the admin panel I entered Enable Download - value = true Download by Re-Direct - Value = true Expiry Delay (days) - Value = 7 Maximum number of downloads - Value = 2 When I add an attribute to the product the dropdowns do appear. I loaded the file to: public_html/oscommerce/download/filename Then I set the permissions on the folders. When I went to view the store I got the following error on top of the page: Warning: The downloadable products directory does not exist: /home/digital/public_html/oscommercedownload/. Downloadable products will not work until this directory is valid. If the download application is pointing to this directory, what should the file structure be within it. Thanks, Pat Link to comment Share on other sites More sharing options...
OceanRanch Posted February 28, 2005 Share Posted February 28, 2005 Check your oscommerce/includes/configure.php I think it might be missing a trailing / define('DIR_FS_CATALOG', '/home/digital/public_html/oscommerce/'); Tom Link to comment Share on other sites More sharing options...
patmak Posted February 28, 2005 Author Share Posted February 28, 2005 Check your oscommerce/includes/configure.php I think it might be missing a trailing / define('DIR_FS_CATALOG', '/home/digital/public_html/oscommerce/'); Tom <{POST_SNAPBACK}> Thanks again Tom, Just to make sure, in oscommerce/includes/configure.php, I believe this is the code you are referring to: define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/') Should it read: define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); ('DIR_FS_CATALOG', '/home/digital/public_html/oscommerce/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/') Link to comment Share on other sites More sharing options...
OceanRanch Posted February 28, 2005 Share Posted February 28, 2005 Yes, that's my best guess on why the path is not coming out correctly. The dirname function is not returning a slash at the end of it. You should be able to hard code it like I said. These configure.php issues "seem" to always require a tweek on different systems..... :-) Tom Link to comment Share on other sites More sharing options...
Huey Posted March 11, 2005 Share Posted March 11, 2005 Did you add the download "attribute" to the product? Does the dropdown show on the product description? Tom <{POST_SNAPBACK}> I'm dealing with this same issue and I don't think I'm seeing what your are describing. I added the file under product Products Attributes but I'm not seeing anything in the description that would indicate there is a downloadable file attached to the product. After adding a download to a product, what should I be looking for to make sure it's set up correctly? I have confirmed that permission etc. are all correct. Jody Link to comment Share on other sites More sharing options...
OceanRanch Posted March 11, 2005 Share Posted March 11, 2005 In admin->catalog->Product Attributes Create an "Option Value" with an option name like "Download" and an option value like "MP3 Format" and hit the "insert" button. Then within "Product Attributes" at the bottom of the screen, select your product, select the option name "Download" and select the option value of "MP3 Format" and hit insert. This should provide for a drop down choice box on the product description area that your customer will see and choose. And it should be one of the things needed to generate the link after you have "delivered" the product by setting the order status after payment. HTH Tom Link to comment Share on other sites More sharing options...
Huey Posted March 11, 2005 Share Posted March 11, 2005 In admin->catalog->Product Attributes Create an "Option Value" with an option name like "Download" and an option value like "MP3 Format" and hit the "insert" button. Then within "Product Attributes" at the bottom of the screen, select your product, select the option name "Download" and select the option value of "MP3 Format" and hit insert. This should provide for a drop down choice box on the product description area that your customer will see and choose. And it should be one of the things needed to generate the link after you have "delivered" the product by setting the order status after payment. HTH Tom <{POST_SNAPBACK}> That did it. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.