Downloadable Products Issue 2.0.5 - need help

I’ve run into a problem with our downloadable product.



The customer buys a product and it’s delivered in a .zip folder. The problem is when the customer download’s the file, it’s an unknown file with no file extension. I’ve tried this with several different file types and it happens every time. If you then manually add the extension after download, it works fine, but that’s not acceptable.



I need to download the file with it’s extension as I’'m sure others do too.



Any thoughts? I’m running 2.0.5



Thanks!

I don’t know the code on how to make a same file, but you can write on product field about rename or change the unknown file extension to .zip or whatever it is.

[quote name=‘miracles’]I don’t know the code on how to make a same file, but you can write on product field about rename or change the unknown file extension to .zip or whatever it is.[/QUOTE]



I also agree, this is not an acceptable solution. I would suggest putting in a support ticket, and bug report. The support ticket might get you the fix faster.

@elmer328



Hi, did you got an answer on how to fix this? I’m on the same situation.



Cheers

Using 2.06 - the file downloads with the correct extension, but is corrupt. Zip files anyway… we need this to work!

In order to fix, replace the following part of code in the

“orders.php” file located in the “controllers/customer” directory:



fn_get_file(DIR_DOWNLOADS . $file[‘product_id’] . ‘/’ . $file[$field], $file[‘file_name’]);



with this one:



fn_get_file(DIR_DOWNLOADS . $file[‘product_id’] . ‘/’ . $file[$field]);







This took care of the problem.