Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

computerFreek

Archived
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Real Name
    Nathan Graham

computerFreek's Achievements

  1. I would apreciate if you would add this to the readme. As for the thumbnail thing I will work on it maybe I am missing something. Thanks.
  2. For anyone wondering this is how you can output the data from the products_extra_fields contribution to the pdf file. Note: I am new to php so bear that in mind. Firstly add the following to pdf_catalog.php (I added it at line 426 so it would apear under the model): ?//include product_extra_fields ?if(SHOW_PRODUCTS_EXTRA_FIELDS) ?{ ?$extra_fields_query = tep_db_query(" ?SELECT pef.products_extra_fields_name as name, ptf.products_extra_fields_value as value ?FROM ". TABLE_PRODUCTS_EXTRA_FIELDS ." pef ?LEFT JOIN ?". TABLE_PRODUCTS_TO_PRODUCTS_EXTRA_FIELDS ." ptf ?ON ptf.products_extra_fields_id=pef.products_extra_fields_id ?WHERE ptf.products_id=".$data_array[10]." ?ORDER BY products_extra_fields_order"); ?while ($extra_fields = tep_db_fetch_array($extra_fields_query)) { ? if ($extra_fields['value'] != '') { ? ?$line=$extra_fields['name'].": ?".$extra_fields['value']; ? ?$this->Cell($data_array[0]+6,5,"",0,0); ? ? $this->MultiCell($this->text_fw,5,$line,PRODUCTS_BORDER,'L'); ? } ?} ?} Then In you pdf_config.php file add the following just before the ?>(this allows you to turn this on and off): //Show the Product extra fields if you have this module installed (0 = no, 1 = yes) //It can be downloaded from http://www.oscommerce.com/community/contributions,2202 define('SHOW_PRODUCTS_EXTRA_FIELDS',1); If anyone has a better way or any suggestions please feel free to comment. This is just my way of giving something back to the community. PS: Should I add this as a contrib, and if so where??
  3. Ok thanks to "da-Idiot" and "TooLoo" i have a solution to the jpeg issue: in pdf_catalog.php line 173 shoould read: $destination=DIR_FS_CATALOG."catalogues/"; not $destination =DIR_FS_CATALOG."catalogues/"; And in pdf_fpdf.php lines 1476 to 1481 should be: if(!$a){ ? ?print('Missing or incorrect image file: '.$file); ?$file=DIR_FS_CATALOG.DIR_WS_IMAGES.DEFAULT_IMAGE; ?//$this->Error('Missing or incorrect image file: '.$file); ?} not if(!$a) ? ?print('Missing or incorrect image file: '.$file); ?$file=DIR_FS_CATALOG.DIR_WS_IMAGES.DEFAULT_IMAGE; ?//$this->Error('Missing or incorrect image file: '.$file); ? NOTE: there are missing {}'s Still cant get the thumbnail version going though. this would help as my pdf sits at 30mb and take about 1/2 hour to generate (not the fastest server though - its for testing) Thanks in advance.
  4. Ok, I have reverted back to the original version for the moment. There appears to be something wrong with the jpeg processing code (couldn't tell you where as I dont understand what it does yet), I noticed that all the products with jpeg images have no images in the pdf whereas the ones which have gif images work fine. ?????????
  5. Ok now when I try to use the thumbnail version I get: Missing or incorrect image file: /home/www/public_html/catalog/images/imagecache/USPCH.jpgFPDF error: Not a JPEG file: /home/www/public_html/catalog/images/logo.jpg the directory has full access enabled, all images are under catalog/images (no sub folders) no userfull error generated in server logs. Any Ideas?????
  6. sorry i am using the origonal contrib, but I am going to try the thumbnail on because the origional one takes 15 minutes to process the file (mind you there is 1500 products).hopefully the thumbnail version wont take so long. Also with the original one i get an error when i open or print the pdf saying "insufficient data for an image" and then some of the images are there and others aren't, any ideas????
  7. never mind once I removed the images which were in subfolders the catalog generated as expected. Thanks for the pointer - Bit of a noob to php so I'm kinda feeling my way in the dark with this stuff.
  8. Ok Fair enough, but what about the second part of the error logo.jpg is not a jpeg????? looks like a jpeg to me. ;)
  9. :' :blink: I am having problems with this contribution, I keep getting the follwoing error. after fixing the error in the path to the images i always get the following: Missing or incorrect image file: /home/mystore/public_html/catalog/images/jedko/DK1417X.jpg FPDF error: Not a JPEG file: /home/mystore/public_html/catalog/images/logo.jpg Please help....
×
×
  • Create New...