Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted
This is the support thread for the contrib that I modded to integrate the two contribs.

 

Scott

thanks.

 

I have a few queries

 

I think the contrib missing the pdf.gif file

 

I have installed this and the fpdf directory with fonts directory and fonts but get this error

 

Warning: setfont(pdf/font/helveticab.php): failed to open stream: No such file or directory in /homepages/4/d151894510/htdocs/Girlsgoodies/pdf/fpdf/fpdf.php on line 550

 

Warning: setfont(): Failed opening 'pdf/font/helveticab.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/4/d151894510/htdocs/Girlsgoodies/pdf/fpdf/fpdf.php on line 550

FPDF error: Could not include font metric file

 

But when I look the files are there in the correct location

 

any ideas?

 

thanks in advance

Posted
thanks.

 

I have a few queries

 

I think the contrib missing the pdf.gif file

 

I have installed this and the fpdf directory with fonts directory and fonts but get this error

 

Warning: setfont(pdf/font/helveticab.php): failed to open stream: No such file or directory in /homepages/4/d151894510/htdocs/Girlsgoodies/pdf/fpdf/fpdf.php on line 550

 

Warning: setfont(): Failed opening 'pdf/font/helveticab.php' for inclusion (include_path='.:/usr/local/lib/php') in /homepages/4/d151894510/htdocs/Girlsgoodies/pdf/fpdf/fpdf.php on line 550

FPDF error: Could not include font metric file

 

But when I look the files are there in the correct location

 

any ideas?

 

 

Sorry me being thick. I had a Uppercase F in Font directory... oppps.

 

works well so far, thanks!

 

thanks in advance

Posted

Only problem I found was it would add the PDF icon to the product info page, but not the "click here text"

 

I know nothing about php etc but have got it working

 

by changing this

 

<?php echo '<a href="' . tep_href_link(FILENAME_PDF_DATASHEET, 'products_id=' . $product_info['products_id']) .'" target="_self">' . tep_image('images/pdf.gif') .'</a>'; ?>

 

 

to this

 

<?php echo '<a href="' . tep_href_link(FILENAME_PDF_DATASHEET, 'products_id=' . $product_info['products_id']) .'" target="_self">' . tep_image('images/pdf.gif'), TEXT_PDF_DOWNLOAD .'</a>'; ?>

 

Also got the pdf.gif from an older posting.

 

Works good, thanks.

Posted

hi

 

unfortunately my English is not the best, I hopes it can me nevertheless somehow help. my problem is in the table of contents at the end of the pdf files all data is centered but i need ist left. is there a possibility to affect there?

Posted (edited)

I get this error when i will generate a pdf file in the admin panel. someone now why ???

 

1054 - Unknown column 'p.products_id' in 'on clause'

 

select p.products_id, pd.products_name, pd.products_description, p.products_image, p.products_model, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, p.products_date_added, m.manufacturers_name from products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id='1' order by pd.products_name, p.products_date_added DESC

 

[TEP STOP]

 

PLease help

Edited by TheExterminator

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...