cardsup Posted March 2, 2005 Share Posted March 2, 2005 I have a question -- I have many downloadable products, so to keep track and be more organized, I made subfolders in the "Download" folder. In the 'products_attributes_download' I set the path, i.e. '1/product/1/000003.zip'. When I make a test purchase and I click on the "download" link, I get a download.txt file that basically tells me the file can not be found. However, if the product is in the main folder (not in the subfolders), I can download it just fine... What is the best way to organize all the downloadable files? If everything is in one folder, it will get messy with several thousand products...Any ideas? Link to comment Share on other sites More sharing options...
cardsup Posted March 3, 2005 Author Share Posted March 3, 2005 Still have not fixed the problem...Any ideas on how to make subfolders in the download folder that work? Link to comment Share on other sites More sharing options...
cardsup Posted March 4, 2005 Author Share Posted March 4, 2005 Anybody? Any ideas? I am really concerned that I will have to move all my downloadable files into one folder, which will make it really messy...Also, are there any restrictions for how many files can be (viewed) in one folder? PLEASE HELP! Link to comment Share on other sites More sharing options...
snot_m73 Posted March 10, 2005 Share Posted March 10, 2005 I have a question -- I have many downloadable products, so to keep track and be more organized, I made subfolders in the "Download" folder. In the 'products_attributes_download' I set the path, i.e. '1/product/1/000003.zip'. When I make a test purchase and I click on the "download" link, I get a download.txt file that basically tells me the file can not be found. However, if the product is in the main folder (not in the subfolders), I can download it just fine... What is the best way to organize all the downloadable files? If everything is in one folder, it will get messy with several thousand products...Any ideas? <{POST_SNAPBACK}> Having your products in subdirectories, if you use "download by redirect = true" the download CAN'T function correctly! Open catalog/download.php Go to line 92 and 93 and modify adding the basename function: 92: symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . basename($downloads['orders_products_filename'])); 93: tep_redirect(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . basename($downloads['orders_products_filename'])); Link to comment Share on other sites More sharing options...
cardsup Posted March 10, 2005 Author Share Posted March 10, 2005 92: symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . basename($downloads['orders_products_filename']));93: tep_redirect(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . basename($downloads['orders_products_filename'])); <{POST_SNAPBACK}> THANK YOU! THANK YOU!!! THANK YOU!!! It worked like charm! You really made my day! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.