If this is your first visit, check our documentation. To post, register or login.

No Download Link

Started by jbattin on 7 Oct 2012, 10:35 PM · Views: 741

Results 1 to 10 of 10
7 Oct 2012, 10:35 PM
#1
jbattin avatar

jbattin

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

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.

7 Oct 2012, 10:46 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Oct 2012, 12:26 AM
#3
jbattin avatar

jbattin

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

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.

8 Oct 2012, 1:22 AM
#5
jbattin avatar

jbattin

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

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 /

8 Oct 2012, 1:24 AM
#6
jbattin avatar

jbattin

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

Re: No Download Link

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

8 Oct 2012, 2:46 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: No Download Link

JBattin:

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!
Donate to: DrByte directly or to the Zen Cart team as a whole

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 Oct 2012, 2:52 AM
#8
jbattin avatar

jbattin

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

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.

8 Oct 2012, 3:36 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

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!
Donate to: DrByte directly or to the Zen Cart team as a whole

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.

16 Oct 2012, 7:42 PM
#10
jbattin avatar

jbattin

New Zenner

Join Date:
Mar 2011
Posts:
10
Plugin Contributions:
0

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.