Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PDF catalog


Guest

Recommended Posts

Posted

Hi all. I downloaded the PDF catalog module.

 

Php: 4.3.1

APache: last release

 

So, Ill try a couple of time to make this program functionning... And it was hard to find a solution to run it properly. I partialy succeeded... It works but I can't create an image on the pdf document.

 

In the pdf_config.php file: if I put:

define('SHOW_IMAGES',1); //Show products image or not if not no links

it keeps saying me:

FPDF error: Image file has no extension and no type was specified: /home/httpd/htdocs/ReseauDirect/catalog/images/

If I put:

define('SHOW_IMAGES',0); //Show products image or not if not no links

 

I got the complete catalog of my shop... I search all the cases on the forum and in general, we have the same problem. Even if I installed the gd lib, even if I hack the code to show me all the pictures, I always get a non existing picture in my folder: images/

 

EVEN IF, I put:

define('MAX_DISPLAY_PRODUCTS_NEW',8);//Max Display New Products

 

I tried to remove all the gif images in the folder images/ and let the jpg images... Maybe someone can help me on the module and contribute to fix the bugs together on this great module.. Tks for helping guys...

Posted

When I was getting a similar error, it was because my path was pointing to /catalog/images. You have set in your pdf_catalogue.php around line 620 a line stating

$imagepath=DIR_FS_CATALOG.DIR_WS_IMAGES.$print_catalog_array[$j]['image'];

Try commenting that out and putting in

$imagepath='..'.DIR_WS_CATALOG_IMAGES.$print_catalog_array[$j]['image'];

This takes the File system path /home/httpd/ect... and makes it local ../catalog/images/.

Posted

Yes maybe it worked for you but in this case, I got that kind of error cause my shop contained some items without pictures!! Thats why, thats all :) So, pay attention in your admin panel, for each items, you have to put a picture !! Good luck all and tks for your comments guys!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...