Forums / Setting Up Categories, Products, Attributes / No download link after checkout for my downloadable files

No download link after checkout for my downloadable files

Started by dryaquaman on 22 Oct 2010, 1:57 AM · Views: 2,744

Results 1 to 12 of 12
22 Oct 2010, 1:57 AM
#1
dryaquaman avatar

dryaquaman

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

No download link after checkout for my downloadable files

Using ver 1.3.9g
Just Set up new from Cpanel.
No new mods.

I'm struggling with trying to set up a product for a free download.
I've gone through the tutorial here: https://www.zen-cart.com/tutorials/index.php?print=71 and it looks right to me.

I'm trying to set up a product that's available in 3 formats: MP3, WAV and custom. I've get the options when I choose the product when ordering but I never get the option to DL the product. No link.

When I set up the attributes I get the green dot so I know it sees the file.

Per the tutorial, I've told it that it's not a virtual product and for "Always Free Shipping" I've chosen No, Normal Shipping Rules".

I'm using the Freeshipper module and it's green.

I'm baffled as to where to turn next.
The site is http://www.university-music-on-hold.com/store

I'm sure I've missed something but I've been going through the tutorials for some time and can't find it.

I'm only trying to get one product on line and I'm trying to give it away. Can anyone point me in the right direction?

Dry Aquaman

22 Oct 2010, 2:37 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: No download link after checkout for my downloadable files

Please describe the checkout procedure you've followed, starting with an empty cart, all the way to the end of checkout where it says "Thanks for your order".

.
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.

22 Oct 2010, 10:07 AM
#3
dryaquaman avatar

dryaquaman

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Re: No download link after checkout for my downloadable files

Thanks for the reply.
Here the process I used to "purchase" start to finish.
(1) Click the Free Catagory from Home page
(2) Chose Mitel Format [was: +0.00 no is : Free]
(3) Click "Add this to my cart"
(4) click "Go to Checkout"
(5) Register as new customer
(6) Click checkbox for terms and conditions
(7) Click continue Checkout
(8) Next is "Billing and payment information
-Shows Customer address
-Shows
"Payment Method: The Zen Cart FREE CHARGE CARD
Used for purchase of FREE CHARGE ONLY"
(8) Click "confirm order"

  • I then get: "Thank You! We Appreciate your Business!
    Your Order Number is: 14

Checkout Success Sample Text ..."

(and..)
"To download your files click the download button and choose "Save to Disk" from the popup menu."
"Item Name File Size Filename Link Expires Remaining
Double Beep Tone 0 bytes Beep1-mitel.wav 10/29/2010 50"

But I don't get a button to download.

22 Oct 2010, 1:52 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: No download link after checkout for my downloadable files

Why would it be telling you "0 bytes"? Is the file really 0 bytes on the 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.

22 Oct 2010, 5:22 PM
#5
dryaquaman avatar

dryaquaman

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Re: No download link after checkout for my downloadable files

Good question!
I FTP'd to the site and file size is not zero.

I did move the /download directory to one that is not public per another tutorial I found here regarding security. But it wasn't working even before I did that.
I do see the green dot when applying the attributes so I would have to think that it sees the file.

Dry Aquaman.

22 Oct 2010, 11:59 PM
#6
dryaquaman avatar

dryaquaman

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Re: No download link after checkout for my downloadable files

I liked the idea of doing screen shots so I uploaded them in order.
1- http://www.university-music-on-hold.com/troubleshoot/choose-product..jpg
2- http://www.university-music-on-hold.com/troubleshoot/cart-contents.jpg
3 - http://www.university-music-on-hold.com/troubleshoot/confirm.jpg
4- http://www.university-music-on-hold.com/troubleshoot/payment.jpg
5- http://www.university-music-on-hold.com/troubleshoot/success-page.jpg
6- http://www.university-music-on-hold.com/troubleshoot/success-page2.jpg

Pages 5 and 6 are of the success page. I just wanted to show that there isn't a download link.

If there are any config screen shots you'd like to see let me know and I'll see about uploading them.

DryAquaman

23 Oct 2010, 12:16 AM
#7
drbyte avatar

drbyte

Sensei

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

Re: No download link after checkout for my downloadable files

The download link will only appear if ALL of the following conditions are met:
a) the file actually exists at the path specified (This also means that if you changed the DIR_FS_DOWNLOAD setting that it must point to the proper real location)
b) the download count-remaining is greater than 0
c) the download timestamp expiry date hasn't passed
d) the download maximum-allowed days hasn't passed, or is unlimited (ie: 0).

I'm guessing that something in your server is preventing PHP from reading that the file exists and also preventing it from reading the file size. That's something your hosting company would have to fix.
There might be some myDebug-xxxxx.log files in your /cache/ folder which may expose some of the causes of errors happening on your site. Those would help verify my suspicion.

.
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.

23 Oct 2010, 12:50 AM
#8
dryaquaman avatar

dryaquaman

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Re: No download link after checkout for my downloadable files

Thanks for your help.
I'm so close I can taste it!
Using your clue about the log file, I've found this:
[22-Oct-2010 12:15:59] PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/xxxxx/public_html/store/download/Beep1-mitel.wav in /home/xxxxx/public_html/store/includes/templates/template_default/templates/tpl_modules_downloads.php on line 41

The file didn't exist in that directory. I thought I had it moved and had it confirmed via the Green Dot in the attributes.

I added the file to that directory and now I get the download link.

But....
Not I get this 403 error: "Forbidden
You don't have permission to access /store/pub/.bkouebbcumplyvb/Beep1-mitel.wav on this server."

I'll also look around the forum to see if I can find the cause of this.

DryAquaman

23 Oct 2010, 12:55 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: No download link after checkout for my downloadable files

"wav" is probably not on the list of allowed filetypes in your /pub/.htaccess file.

.
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.

23 Oct 2010, 1:10 AM
#10
dryaquaman avatar

dryaquaman

New Zenner

Join Date:
Oct 2010
Posts:
10
Plugin Contributions:
0

Re: No download link after checkout for my downloadable files

Got it!!!!

The last issue was with the .htaccess file needing to have WAV and wav added to it in the pub folder.

Thanks for all your help.

Now I need to figure out why it didn't work to have my download folder in off my root directory.

DryAquaman

4 Nov 2010, 5:20 PM
#11
lavs avatar

lavs

New Zenner

Join Date:
Mar 2009
Posts:
85
Plugin Contributions:
0

Re: No download link after checkout for my downloadable files

I'm also having this problem, my files are showing as zero bytes:

1884 Ladies' Mitts 0 bytes 1884_Ladies_Mitts.pdf 11/11/2010 5

I've checked my files in the download folder and they do have content (more than zero bytes). I'm not sure how to fix this?

4 Jan 2011, 8:12 PM
#12
sel_888 avatar

sel_888

New Zenner

Join Date:
Dec 2010
Posts:
20
Plugin Contributions:
0

Re: No download link after checkout for my downloadable files

I have my issue very similar to this one in this link....
http://www.zen-cart.com/forum/showthread.php?p=978723
I am not understanding why I am having such an issue.
.mp3 AND .rar are both available in my .htaccess file in the /pub folder, and now i have it so that the .mp3 will STREAM without allowing to save and still a complete forbidden 403 with the .rar file.

I HAVE STREAMING OFF!!!! and download by redirect ON! WT:censored:???