Jump to content

[SOLVED] Downloadable products Error: You Exceed the expiration date


Recommended Posts

Hi! I'm Miguel from Spain. I've been using Prestashop since the 1.0 RC1. Really great software, thank you very much all of you.

But now I've got a problem. I make my first downloadable product, a PDF file. The file upload was perfect, I introduced the number of downloads, the expiration date...
The problem was when a user buys the product. When they click the email link or in his user's zone, it appears an error:

"Dear customer, you exceed the expiration date"

Everything is ok with the expiration date, I change it a dozen times and nothing happens.
I search the forums and found one thread with some information about editing GET-FILE.PHP but is in french and I cannot understand it very well.

Can anyone help me or translate that thread for me? I will be very grateful. THANK YOU VERY MUCH... and sorry for my bad English, I try the best I can...

My Shop: www.h2-online.es
The downloadable product: http://h2-online.es/product.php?id_product=42

Link to comment
Share on other sites

Ok, I've found a "semi solution" for the Issue:

I comment this lines in file GET-FILE.PHP:

$customer_deadline = strtotime($info['date_expiration']);
   if ($now > $customer_deadline AND $info['date_expiration'] != '0000-00-00 00:00:00')
       displayError('Dear customer, you exceed the expiration date.');




For:

//$customer_deadline = strtotime($info['date_expiration']);
   //if ($now > $customer_deadline AND $info['date_expiration'] != '0000-00-00 00:00:00')
       //displayError('Dear customer, you exceed the expiration date.');



The product now downloads without any problem.
Thanks and sorry for the waste of time!!

Link to comment
Share on other sites

×
×
  • Create New...