Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Basic Configuration / No "download" button on my Downloadable Products

No "download" button on my Downloadable Products

Started by irishshopper on 23 May 2011, 5:00 PM · Views: 2,740

Results 1 to 14 of 14
23 May 2011, 5:00 PM
#1
irishshopper avatar

irishshopper

Zen Follower

Join Date:
Apr 2010
Location:
County Down, Northern Ireland
Posts:
302
Plugin Contributions:
0

No "download" button on my Downloadable Products

Having problems getting a test downloadable product (test.zip) to be offered on http://www.knowledge-shop.com with ZenCart 1.3.9h

Getting this below but there is NO download button.

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

How To Make Money On ebay - 1

0 bytes

test

05/30/2011

15

You can also download your products at a later time at 'My Account'

You can view your order history by going to the My Account page and by clicking on "View All Orders".

Please direct any questions you have to customer service.

Thanks for shopping with us online!

23 May 2011, 5:13 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: No "download" button on my Downloadable Products

irishshopper:

0 bytes

test

a) if it's 0 bytes, then there's nothing to download

b) "test" is not "test.zip" -- maybe you've not configured it with the correct filename

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

27 May 2011, 4:35 AM
#3
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: No "download" button on my Downloadable Products

Hi DrByte,

I just had this very thing happen today also.

Customer link expired and I went into the admin and changed the yellow button to green. it gave me 2 days, BUT when the client goes to the download it says 0bytes.

So I checked a few things:

  1. Download has the lil green button
  2. Download in the file matches the exact name

I'm at a lost at this one though.
I've had several orders today w/o issues in downloading, just when it's expired the button isn't showing up and it's saying 0bytes.:blink:

What the customer is getting:

here's what it looks like from the admin area:

DrByte:

a) if it's 0 bytes, then there's nothing to download

b) "test" is not "test.zip" -- maybe you've not configured it with the correct filename

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

27 May 2011, 4:39 AM
#4
drbyte avatar

drbyte

Sensei

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

Re: No "download" button on my Downloadable Products

ZC version? PHP version?

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

27 May 2011, 4:56 AM
#5
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: No "download" button on my Downloadable Products

Zencart v1.3.9h
PHP 5.2.0

DrByte:

ZC version? PHP version?

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

27 May 2011, 6:45 AM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: No "download" button on my Downloadable Products

Have experienced this problem...Solved by using only lower case text for name of zip file.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

27 May 2011, 6:58 AM
#7
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: No "download" button on my Downloadable Products

:blink: Really??? Ok, im going to try it.
But this person has already bought this and I cant (or dont know how) to go into their order and change them all to lowercase.

misty:

Have experienced this problem...Solved by using only lower case text for name of zip file.

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

27 May 2011, 5:56 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: No "download" button on my Downloadable Products

I'm surprised that it would matter whether the filename is lowercase or uppercase.
I'd be more inclined to expect that all downloads are broken due to a bad path for DIR_FS_DOWNLOAD in your configure.php files.

The rules are:
// The link will appear only if:
// - Download remaining count is > 0, AND
// - The file is present in the DOWNLOAD directory, AND EITHER
// - No expiry date is enforced (maxdays == 0), OR
// - The expiry date is not reached

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

27 May 2011, 7:54 PM
#9
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: No "download" button on my Downloadable Products

DR.BYTE HUGS TO YOU :hug:

YOU CRACKED THE CODE AGAIN MY CYBER FRIEND AND WANT TO SAY MUCH THANKS TO YOU.

You were RIGHT, there was an issue with my configure.php file.
I did NOT have the right path.

original path:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/download/');

CORRECTED PATH:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'pub/download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

MY DOWNLOAD BUTTON APPEARED AGAIN....:clap:

OK... IT'S OFFICIAL.... I'M GIVING UP 3 STARBUCKS COFFEE'S A WEEK, SO I CAN START DONATING MONTHLY AGAIN.....:bigups:

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

27 May 2011, 10:02 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: No "download" button on my Downloadable Products

I disagree with the paths you've selected, for security reasons.

I would suggest that the correct paths would be the original values that were set up when Zen Cart was originally installed, as follows:```
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '[B]download/[/B]');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . '[B]pub/[/B]');

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

31 May 2011, 8:53 AM
#11
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: No "download" button on my Downloadable Products

:ohmy: Oh My Dr. Byte, Really?

Then I'm confused...
I tried the original way you stated and it didn't work for me.:blink:
No download button appeared.

So i renamed the download folder 'download/newfoldername/'
and put the music in there. (but for some reason, just putting it in the download folder would not work w/o that sub folder)
But adding that sub folder brought the download button back.:blush:

I moved all the music from the pub/download folder to the download folder.

So now my configure file looks like this:
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/mynewfoldername/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

I hope I have the paths right now because I truly do not want any security issues. But the buttons are working now.

Thanks for your help:wink2:
....and if this is NOT correct, please let me know.....

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

31 May 2011, 9:21 PM
#12
ljdream00 avatar

ljdream00

Zen Follower

Join Date:
Jun 2007
Location:
Michigan
Posts:
168
Plugin Contributions:
0

Re: No "download" button on my Downloadable Products

:oops: Ok, it's me again....

I was really trying to figure out how i could get my buttons to work exactly how Dr. Byte said it should and FORGOT that I did NOT change the pub/download, Back to just 'download/' in the ADMIN area, I did it for the main store configure.php but forgot to change it for the ADMIN** configure.php, once I did this, i was able to delete my subfolder that I had created and now I only have this code:

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
**
BUTTONS ARE THERE

...I JUST PRAY THE FILES DON'T DELETE THEMSELVES LIKE THEY'VE BEEN DOING when someone downloads their file. I've had to re-upload 5 times already.

Zencart Websites I've Designed:
deejaycentipede(DOT)com
djellery216(DOT)com

23 Dec 2011, 8:03 PM
#13
lindeeg avatar

lindeeg

New Zenner

Join Date:
Aug 2010
Posts:
46
Plugin Contributions:
0

Re: No "download" button on my Downloadable Products

ZC 1.3.9d

A customer paid for a downloadable product via a PayPal e-check. Now that the check as cleared PP, her download page is showing no download button and has an expiration date of 12/12/2011. I have no expiration date on any of the downloads.

Unlike the other request here, all of the products show the correct size and have been downloaded many, many times both before and again since.

I tried toggling the status from Pending to Update thinking that might trigger sometime. Any ideas?

Lindee

23 Dec 2011, 10:28 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: No "download" button on my Downloadable Products

If you go to that Product, do you see the Download file with the green icon?

If you go to her order, do you see the Download listed on the Product such as:

Products Model Tax Price (ex) Price (inc) Total (ex) Total (inc)
1 x Unreal Tournament Linked $89.99 $89.99 $89.99 $89.99
- Version: Download: Windows - English

Can you check that your download image is working for the button? Example: mine is at:
/includes/templates/template_default/buttons/english/button_download.gif

Have you tested an order with this Product and download on it on your own account?

if you go into phpMyAdmin and browse the table:
orders_products_download

do you see the download filename listed for that Order's orders_id in the table?

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!