Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2010
    Location
    County Down, Northern Ireland
    Posts
    302
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: No "download" button on my Downloadable Products

    Quote Originally Posted by irishshopper View Post
    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.

  3. #3
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

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

    What the customer is getting:



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


    Quote Originally Posted by DrByte View Post
    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
    Last edited by ljdream00; 27 May 2011 at 05:41 AM. Reason: added the admin pic

  4. #4
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

  5. #5
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: No "download" button on my Downloadable Products

    Zencart v1.3.9h
    PHP 5.2.0


    Quote Originally Posted by DrByte View Post
    ZC version? PHP version?

  6. #6
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: No "download" button on my Downloadable Products

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

  7. #7
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: No "download" button on my Downloadable Products

    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.


    Quote Originally Posted by misty View Post
    Have experienced this problem...Solved by using only lower case text for name of zip file.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

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

  9. #9
    Join Date
    Jun 2007
    Location
    Michigan
    Posts
    187
    Plugin Contributions
    0

    Default Re: No "download" button on my Downloadable Products

    DR.BYTE HUGS TO YOU

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



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

  10. #10
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default 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:
    Code:
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 26
    Last Post: 19 Feb 2010, 02:56 AM
  2. Change "Add to cart" button to "Download" button instead?
    By m_mbarakota in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Jan 2009, 12:56 PM
  3. How to add "Download" button instead of "Add to cart" one
    By m_mbarakota in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Jan 2009, 04:49 AM
  4. Popup window integrated into the "download" button
    By kirkhayes in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Oct 2008, 02:42 AM
  5. Replies: 0
    Last Post: 28 Jul 2008, 09:31 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR