osCmax v2.5 User Manual
Results 1 to 3 of 3

Downloadable product error on checkout

This is a discussion on Downloadable product error on checkout within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Warning: unexpected error in date() in c:\ibserver\www\catalog\includes\modules\downloads .php on line 49 Expiry date: 3 downloads remaining // LINE REMOVED: MOD ...

      
  1. #1
    New Member
    Join Date
    May 2006
    Posts
    17
    Rep Power
    0


    Default Downloadable product error on checkout

    Warning: unexpected error in date() in c:\ibserver\www\catalog\includes\modules\downloads .php on line 49
    Expiry date:
    3 downloads remaining
    // LINE REMOVED: MOD - Downloads Controller Show Button //

    The download button comes up as it should but above it these error messages shows up, the unexpected error in date came when I set expire date to 0. I set it to 0 because else it said the expire date was Tuesday 07 December, 1999 so 7 days wasn't enoug to cover that.

    Dont know why it prints out Line removed... because it's only a comment in the download.php module line 75?

  2. #2
    New Member
    Join Date
    May 2006
    Posts
    17
    Rep Power
    0


    Default RE: Downloadable product error on checkout

    Part of it was already a know bug, code below fixes it:

    0000160: Comment showing up in download option
    Description /catalog/includes/modules/downloads.php
    About line 90 Change:
    Code:
    ?>
    // LINE REMOVED: MOD - Downloads Controller Show Button
    // </tr>
    to:
    Code:
    // LINE REMOVED: MOD - Downloads Controller Show Button
    // </tr>
    ?>

  3. #3
    New Member
    Join Date
    May 2006
    Posts
    17
    Rep Power
    0


    Default RE: Downloadable product error on checkout

    Quick fix to the unexpected error in date() bug. The disadvantage is that you cannot have an expire date set for downloads or in product attributes but it's better than having ugly fault messages displayed to the customer.

    Just comment out line 49 in \catalog\includes\modules\downloads.php so it looks like below.

    // $download_expiry = date('Y-m-d H:i:s', $download_timestamp);

Similar Threads

  1. Checkout error
    By proton318 in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 08-13-2006, 08:32 AM
  2. Tax is lost at checkout if product weight is zero
    By NickW in forum osCMax v1.7 Installation
    Replies: 4
    Last Post: 08-10-2004, 03:09 AM
  3. Best way of controlling (max one product at checkout)
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-30-2004, 01:33 AM
  4. Downloadable Product Setup
    By ativan in forum osCommerce 2.2 Installation Help
    Replies: 7
    Last Post: 03-11-2004, 08:31 PM
  5. Error on checkout
    By cfields in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 11-15-2003, 11:42 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
  •