osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-20-2006, 02:50 AM
New Member
 
Join Date: May 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
robfor
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 05-20-2006, 03:03 AM
New Member
 
Join Date: May 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
robfor
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>
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-20-2006, 04:23 AM
New Member
 
Join Date: May 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
robfor
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);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Checkout error proton318 osCMax v1.7 Discussion 4 08-13-2006 08:32 AM
Tax is lost at checkout if product weight is zero NickW osCMax v1.7 Installation 4 08-10-2004 03:09 AM
Best way of controlling (max one product at checkout) Anonymous osCMax v1.7 Discussion 2 03-30-2004 02:33 AM
Downloadable Product Setup ativan osCommerce 2.2 Installation Help 7 03-11-2004 09:31 PM
Error on checkout cfields osCMax v1.7 Discussion 2 11-16-2003 12:42 AM


All times are GMT -8. The time now is 09:59 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax