I am developing a print selling site and purchased a Mod called Product Downloads http://www.opencart.com/index.php?route ... on_id=1738
The intended use is to place free artwork templates on each product page. So far so good got them uploaded and available to download.
I am offering three formats: .pdf (Acrobat), .indd (InDesign) and .qxp (QuarkXPress). Have ensured MIME types and file extensions are present in the System settings. There is also a download.php file with the Mod that resides in the catalog/controller/product directory and made sure this also has MIME types.
So can download all three file types okay. However the only one that will open after downloading is the PDF file. The other two types both give error messages stating "cannot be opened by this version" even though they were created in the same version.
The fact the pdf version works does not mean much as pdf is a standard option in Opencart.
1. Perhaps there is something else I need to do?
2. Is this a hosting issue with downloads via PHP?
The files do fully download and file sizes match the originals, but perhaps they are corrupted? FYI downloaded via FTP from the download folder and these open fine.
You have two differing but overlapping threads, the other one apparently went somewhere, did that feed back onto this one or is this one orphaned and awaiting rescue? (http://forum.opencart.com/viewtopic.php ... 23#p433823)
I solved it myself as per the other thread:
Deleting this code in download.php fixed the issue for me.
// Clean the output buffer
$levels = ob_get_level();
for ($i=0; $i<$levels; $i++) {
@ob_end_clean();
}
Deleting this code in download.php fixed the issue for me.
// Clean the output buffer
$levels = ob_get_level();
for ($i=0; $i<$levels; $i++) {
@ob_end_clean();
}
Who is online
Users browsing this forum: No registered users and 133 guests