Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with contrib: "Download Page For Pending Downlo


greree

Recommended Posts

This contribution is in the Features section. When the proper conditions are met the page "download_files.php" is loaded. It has some information and other things on it. It also has the product name and file name listed (i.e. Unreal Tournament and unreal.zip). These names are links. The URL for unreal.zip is http://localhost/catalog/download.php?order=4&id=4. Clicking on it downloads the file. The URL for "Unreal Tournament" is http://localhost/catalog/product_info.php?products_id= , which is incorrect. That link should end with "products_id=22", and clicking on it should bring me to the info page for "Unreal Tournament". The code that I think controls this is in the file download_files.php:

 echo '            <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $downloads_values['products_id'], 'NONSSL') . '">' . $downloads_values['products_name'] . '</a></td>' . "n";

I don't know what's wrong. In the right column in the "Order History" and "Bestsellers" boxes the name "Unreal Tournament" appears as a link, and in both cases it works fine. The URL in both cases ends in "products_id=22". I compared the codes that work with the code that doesn't, but I couldn't figure it out. Could someone take a look at this contribution and tell me what's going wrong? It isn't a complicated contrib. Oh, I'm using the current snapshot. Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...