Zen Cart Logo
Forums / General Questions / How do I get my Download button? It is gone.

How do I get my Download button? It is gone.

Locked

Views: 1,199

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
22 May 2012, 7:17 AM
#1
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

How do I get my Download button? It is gone.

Attachment 10511

I've attached an image of the problem.

This hasn't happened to me before. I have a product available for download after purchasing. The problem here is that it says "To download your files click the download button and choose "Save to Disk" from the popup menu." and there's no download button. I checked my file in the attributes and it has the green dot indicating that it can be found. What could be my problem?

Thanks,
BP

22 May 2012, 7:47 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How do I get my Download button? It is gone.

What settings do you have under configuration->attributes_settings?

Does the problem exist with all downloads, or just this one?

What permissions do you have for your /pub/ folder?

What permission do you have on your /downloads/ folder?

Although probably not a cause of the problem, your screenshot is indicating that the size of this file is only 152bytes. The just happens to be the size of a zip file that is created when zipping a file with a single character filename with no content (IOW, an empty or unreadable file). Coincidence? Probably not.

Hope this helps. If not, you'll need to answer those questions so that we have the same clues that you do :)

Cheers
Rod

22 May 2012, 9:41 AM
#3
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: How do I get my Download button? It is gone.

RodG:

What settings do you have under configuration->attributes_settings?

Enable Downloads true
Download by Redirect true
Download by streaming false
Download Expiration (Number of Days) 7
Number of Downloads Allowed - Per Product 5
Downloads Controller Update Status Value 4
Downloads Controller Order Status Value >= lower value 2
Downloads Controller Order Status Value <= upper value 4
Enable Price Factor true
Enable Qty Price Discount true
Enable Attribute Images true
Enable Text Pricing by word or letter true
Text Pricing - Spaces are Free 1
Read Only option type - Ignore for Add to Cart 1

RodG:

Does the problem exist with all downloads, or just this one?

As far as I know, it's just this one. But I'm trying it with other folders and I still have this problem.

RodG:

What permissions do you have for your /pub/ folder?

It was 705, but I changed it to 755 and the problem still persisted.

RodG:

What permission do you have on your /downloads/ folder?

It was 705, but I changed it to 755 and the problem still persisted.

RodG:

Although probably not a cause of the problem, your screenshot is indicating that the size of this file is only 152bytes. The just happens to be the size of a zip file that is created when zipping a file with a single character filename with no content (IOW, an empty or unreadable file). Coincidence? Probably not.

Well, I put a blank text file in it. I tried this again with a test.zip file with a bit more content in it and I got the same problem. (I thought the problem might have been numbers in the file name.)

22 May 2012, 12:33 PM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How do I get my Download button? It is gone.

bparker:

Originally Posted by RodG

             Does the problem exist with all downloads, or just this one?                     [\[IMG\]http://www.zen-cart.com/images/styles/zencart/buttons/viewpost-right.png\[/IMG\]](http://www.zen-cart.com/showthread.php?p=1127455#post1127455)

As far as I know, it's just this one. But I'm trying it with other folders and I still have this problem.

I hope you meant 'files' and not 'folders'?

bparker:

Originally Posted by RodG

             What permissions do you have for your /pub/ folder?![](http://www.zen-cart.com/images/styles/zencart/buttons/viewpost-right.png)

It was 705, but I changed it to 755 and the problem still persisted.

OK, but where the heck did you get a 705 permission idea from? This is never a useful setting for any purpose.

This folder needs to be writable by the web server, depending on the server this will need to be 755, 775 or 777 (777 will cause some servers to produce an error).

Please review the following FAQ file for this, and and additional tips.
http://www.zen-cart.com/content.php?113-how-do-i-make-products-downloadable

Cheers
Rod

22 May 2012, 1:09 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: How do I get my Download button? It is gone.

You are showing 0 Remaining on the Downloads ... based on the image you are displaying ...

What happens if you update the order so that there are Downloads available?

Does the 0 Remaining start from the beginning of the Order being placed? Or, is that just because you have already tried to Download beyong the Download attempts on this order?

If you check the Attribute for the Download, does the number of Remaining show as higher than 0 for this Download?

22 May 2012, 6:23 PM
#6
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: How do I get my Download button? It is gone.

RodG:

I hope you meant 'files' and not 'folders'?

I did.

RodG:

OK, but where the heck did you get a 705 permission idea from? This is never a useful setting for any purpose.

I know, it's bizarre. It's what happened after the install. Well, I changed it to 755, so that makes more sense.

ANYWAY, THE ISSUE IS SOLVED

What happened is I had 0 as my max downloads for some reason. I think I left the field blank hoping it would give limitless downloads.

Thanks Ajeh (or, Link, I should say) for noticing that!

22 May 2012, 8:17 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: How do I get my Download button? It is gone.

Thanks for the update that this is now working for you ... :smile:

23 May 2012, 6:14 AM
#8
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How do I get my Download button? It is gone.

bparker:

What happened is I had 0 as my max downloads for some reason. I think I left the field blank hoping it would give limitless downloads.

Thanks Ajeh (or, Link, I should say) for noticing that!

Gee, she's good! Worth her weight in gold. :)

Cheers
Rod

26 Sep 2012, 12:25 AM
#9
bparker avatar

bparker

Zen Follower

Join Date:
Oct 2008
Location:
Rochester, NY
Posts:
232
Plugin Contributions:
0

Re: How do I get my Download button? It is gone.

So... now that that's working, I had another question. Is it possible to bypass the whole "NOTE: Downloads are not available until payment has been confirmed" matter that comes up every time a download is purchased? Is there a way I can just approve it automatically?

Thanks!

26 Sep 2012, 12:29 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How do I get my Download button? It is gone.

Is it possible to bypass the whole "NOTE: Downloads are not available until payment has been confirmed" matter that comes up every time a download is purchased?
Payment confirmation should be automatic when paid and confirmed