Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default No Download Link

    I am hoping someone can help me figure out what I have wrong. None of my download orders have download links.
    I have included 3 screen shots. It doesn't matter if the product is 0 or >0. The example I have shown is a zero item.

    Steps are: 1) add product to cart, 2) request checkout 3) submit order, 4) go to account and view order.

    BTW, my download directory is outside of my domain.

    Thanks for the help everyone.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Zen_test_attrib.jpg 
Views:	21 
Size:	32.5 KB 
ID:	11266   Click image for larger version. 

Name:	Zen_test_checkout.jpg 
Views:	17 
Size:	46.6 KB 
ID:	11267   Click image for larger version. 

Name:	Zen_test_order.jpg 
Views:	23 
Size:	46.5 KB 
ID:	11268  


  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,719
    Plugin Contributions
    6

    Default Re: No Download Link

    You Downloads appear to be marked as:
    Display Only YES

    turn that off ...

    The file:
    1testfile.zip

    appears to have no size and may be a bad or corrupt file on your server ...

    Make sure it is a valid ZIP file and reload that file to your server ...

    Make a new Test Order with this product and see if it works for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: No Download Link

    The only solution was moving the files to the directory under the domain. So what is the trick to getting this to work when having the download directory outside of the domain?

    Hopefully there is a solution to this.

    Thanks.

  4. #4
    Join Date
    Aug 2005
    Posts
    26,056
    Plugin Contributions
    9

    Default Re: No Download Link

    So what is the trick to getting this to work when having the download directory outside of the domain?
    The tutorials are a valuable resource for these often asked questions
    I searched for "downloads"

    http://www.zen-cart.com/content.php?...etter-security
    Zen-Venom Get Bitten
    Get Your Business Found

  5. #5
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: No Download Link

    I just thought of something - I have attached my Attribute Configuration screen shot.

    My download directory outside of my domain has a minimum of 644 for the directories and files.

    Do I need some other setting?


    Here is what my .htaccess shows:
    # deny *everything*
    <FilesMatch ".*">
    Order Allow,Deny
    Deny from all
    </FilesMatch>

    # but now allow just *certain* necessary files:
    <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA)$">
    Order Allow,Deny
    Allow from all

    # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
    # (just uncomment the next 2 lines by removing the '#'):
    ForceType application/octet-stream
    Header set Content-Disposition attachment
    </FilesMatch>

    IndexIgnore */*
    Attached Images Attached Images  

  6. #6
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: No Download Link

    Thanks - already followed the instructions on the download FAQ's that I found.

  7. #7
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: No Download Link

    Quote Originally Posted by JBattin View Post
    The only solution was moving the files to the directory under the domain. So what is the trick to getting this to work when having the download directory outside of the domain?
    When you moved it, you were supposed to update the path in both configure.php files. That includes making sure the configure.php files are writable before trying to save or upload changes to them.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: No Download Link

    I did do that. That's why the file had a green instead of a red. I changed both config files all instances.

  9. #9
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: No Download Link

    The way it works is simple:

    a) the DIR_FS_DOWNLOAD path points to where the files are found (the specified folder must exist on the same server, and PHP/Apache must have permission to access that folder)
    b) you put the files into that folder
    c) the system reads the files from that folder when forwarding them to the customer

    If the system is unable to see the files or is unable to read the files' contents, then of course it fails.
    If it can't see or read the files, then that's either because you've told it the wrong place, or because the filesystem is denying access to PHP and/or Apache. In both cases, your hosting company would have to assist you in setting up permissions that work for your particular server.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Mar 2011
    Posts
    10
    Plugin Contributions
    0

    Default Re: No Download Link

    I just thought I would update this thread to indicate that my hosting, ixwebhosting, does not allow me to move the download directory outside of the domain name.

 

 

Similar Threads

  1. download link button - incorrect link - 404
    By tortagialla in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 21 Feb 2012, 06:41 PM
  2. Replace the normal digital product download link with a different/external link
    By ballyc27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Jul 2009, 05:31 PM
  3. No Download Link?
    By robynannelise09 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 4 Nov 2008, 10:50 PM
  4. No Download Link - Link Expired in 1970?
    By luckyclover in forum General Questions
    Replies: 1
    Last Post: 15 May 2008, 03:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •