Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Download Link Doesn't Appear


Recommended Posts

After reading through previous posts, I can see this is a common problem with this software.








I found a summary of the steps, of which I have followed.


1.Enable download under configure

2. I also enabled "Download by Redirect"


3.Add a product under one of your categories/products (BTW I think it works best if you put the price here instead under the download). Be sure to put the URL of the product in this form using this syntax;



4.Go to product attributes and make an option "downloads'


5.On this same screen under Product attributes select the product from #3 above and set option name to download


6.Put the name of the downloadable file in the "file name" box below product attributes and 'insert'.


7.Put your file that you wan to download in the 'downloads' folder


here is the code from the downloads.php file that is relevant to the issue.

// The link will appear only if:
// - Download remaining count is > 0, AND
// - The file is present in the DOWNLOAD directory, AND EITHER
// - No expiry date is enforced (maxdays == 0), OR
// - The expiry date is not reached
  if ( ($downloads['download_count'] > 0) && (file_exists(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'])) && ( ($downloads['download_maxdays'] == 0) || ($download_timestamp > time())) ) {
	echo '			<td class="main"><a href="' . tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']) . '">' . $downloads['products_name'] . '</a></td>' . "\n";
  } else {
	echo '			<td class="main">' . $downloads['products_name'] . '</td>' . "\n";


The only thing that I can think of is we have .htaccess passworded the downloads folder, to prevent people from downloading the files, somehow is preventing the script from seeing the image. Everything else is correct and all it displays is the product_name instead of the link.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...