Jump to content
detsouvalas

PDF Catalog v.1.5

Recommended Posts

Hey,

 

Sorry but Ive been flat out. I will upload the code sometime tonight If I can, and I will explain what ive done.

 

Cheers,

Chris

 

great! thanks alot for your help. Than I will be near my goal on my site. Looking forward to tonight.

 

Cheers

Peter

Share this post


Link to post
Share on other sites

Dracula,

 

I do not have the normal oscommerce setup, I have os2Max.

 

Maybe that's the answer to the problems! Have you checked the database structure and if the database fileds do the same job as in the osC2.2MS2??

 

I will be very pleased to add the romanian translation to the script!


Antonios

 

olympicslogo_en.gif

Share this post


Link to post
Share on other sites

nope everything works fine even with os2max.

stupid me loaded the sql script to the test database :lol:

I still don't understand why I can't create the catalog on server A and why it works on server B with the same database ...

but I will use server B for creating catalogs since I don't want to block the production server.

I will work the next days on the translation and send you the files.

Share this post


Link to post
Share on other sites

Hi I try to add some info from the database to PDF Catalog v.1.5, but I have problem to get them on the same line.

 

What I like to do is:

Masseur ca. 16.50 cm High, ca. 14.00 cm Long and ca. 2.00 cm Width

 

Where 16.50, 14.00 and 2.00 is from the date base

 

 

? if(SHOW_DESCRIPTION)

? {

?  if(strlen($data_array[6]))

? {

? ? $this->Cell($data_array[0]+3,5,"",0,0);

? ? $this->MultiCell(180-$data_array[0],5,$data_array[6],0,'L');

? ? $this->cell(25,5,'? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? H?jde: '.$data_array[13],0,'L');

?  $this->cell(25,5,'? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Cm.? L?ngde: '.$data_array[14],0,'L');

?  $this->cell(25,5,'? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Cm.? Brede: '.$data_array[15],0,'L');

?  $this->cell(25,5,'? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Cm. ',0,'L');

? }

? }

 

But there is problems with the spacing it look like this:

 

Masseur ca. 16.50   cm High, ca. 140.00       cm Long and ca. 2.00 cm Width

no like this:

 

Masseur ca. 16.50 cm High, ca. 140.00 cm Long and ca. 2.00 cm Width

 

are there a better way? where you can have more $data_array on same line?

Edited by peteravu

Share this post


Link to post
Share on other sites

ok I find out, now like this:

 if(SHOW_DESCRIPTION)
 {
	 if(strlen($data_array[6]))
 {
   $this->Cell($data_array[0]+3,5,"",0,0);
   $this->MultiCell(180-$data_array[0],5,$data_array[6],0,'L');
   $this->Cell($data_array[0]+3,5,"",0,0);
     $this->cell(155,5,'M?l: H?jde: ' . $data_array[13] . ' Cm.  L?ngde: ' . $data_array[14] . ' Cm.  Brede: ' . $data_array[15] . ' Cm.',0,'R');
  	 }
 }

 

Now I have problem with long descriptions go on a new page only with only 2 or 3 lines instead of follow the next item on an new page.

Share this post


Link to post
Share on other sites

anybody know how to do this?

 

serena

 

Dear,

thanks for your pdf catalog's contribute. I've one question for you.

Is possible add to end of catalog also option values (order by categories)?

 

Example:

 

--+------------------------------------+-----------------

CATEGORIE a

--+------------------------------------+-----------------

| PRODUCT NAME x PRICE

--+------------------------------------+-----------------

1 Name Option 1 + 5,00 $

--+------------------------------------+-----------

2 Name Option 2 + 12,00 $

--+------------------------------------+-----------

3 Name Option 3 + 7,00 $

--+------------------------------------+-----------

| PRODUCT NAME y PRICE

--+------------------------------------+-----------

1 Name Option 1 + 3,00 $

--+------------------------------------+-----------

2 Name Option 2 + 56,00 $

--+------------------------------------+-----------

3 Name Option 3 + 32,00 $

--+------------------------------------+-----------

ecc.

--+------------------------------------+-----------

 

 

 

--+------------------------------------+-----------

CATEGORIE b

--+------------------------------------+-----------

| PRODUCT NAME k PRICE

--+------------------------------------+-----------

1 Name Option 1 + 3,00 $

--+------------------------------------+-----------

2 Name Option 2 + 56,00 $

--+------------------------------------+-----------

3 Name Option 3 + 32,00 $

--+------------------------------------+-----------

ecc.

--+------------------------------------+-----------

 

Thanks.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Hi!

 

I just returned from a business trip, please give me some time to work on the questions!

 

Antonios


Antonios

 

olympicslogo_en.gif

Share this post


Link to post
Share on other sites

Hello,

 

I was tried the script in a local server and it worked well...

So i tried to install in ther IPS but it give a error :

 

FPDF error: Unsupported image file type: bmp

File : /home/inforcim/public_html/images/bundlehp.bmp

 

I delete all bmp images but i get the error in the same.

 

Please, can you help me ?

 

Best regards

Ema Ferreira

Share this post


Link to post
Share on other sites

I'm no expert, but from what the error message is saying perhaps you should be using jpeg or gif files. Have a look at the php file that is referencing the error message and see where it is calling the bmp image, make a copy first and then try editing to use the correct one.

Edited by noclue2

24/7, The time we would all love to spend on our passions.

Share this post


Link to post
Share on other sites
FPDF error: Unsupported image file type: bmp

File : /home/inforcim/public_html/images/bundlehp.bmp

 

What version of the script are you using??

In v.1.6 beta, there shouldn't be such a problem because it replaces (or at least, I should do so in theory!!) unknown/unsupported file formats with a dummy image!


Antonios

 

olympicslogo_en.gif

Share this post


Link to post
Share on other sites
ok I worked it out so now only 47 page
How?

 

I had change

$h=5*$totallines."<br>";

to

$h=0*$totallines."<br>";

that give more items pr page but also more page with only 1 or 2 lines so now I use

$h=3*$totallines."<br>";

still like to reduce the empty line space to reduce the number of pages. Like the empty line under the description, the space under the category and specially the long space after the last item.

 

And still like to add the attributes if anybody can help!

Share this post


Link to post
Share on other sites

peteravu,

 

And still like to add the attributes if anybody can help!

 

Check if that is what you are looking for ... if yes, it's not perfect but should be a good working base!


Antonios

 

olympicslogo_en.gif

Share this post


Link to post
Share on other sites

Hey,

 

I asked about this before, but I didnt get a reply, so here it is again.

 

Firstly, on my first lot of products (products are contained in the subcategory), it will not print the main category label.

i.e. it displays '-->sub category' instead of 'main category --> sub category'. Why is that happening? I cannot seem to figure it out. This was actually happening before any modifications were done. For everyother main category and subcategory it is working fine - the error is only for the first main category.

 

Also, I want to know how to display the WHOLE categories path to the product instead of the current category and its parent category.

My categories table is a maximum of 3 levels. If you can help me then it would be greatly appreciated.

 

Cheers,

Chris :)

Share this post


Link to post
Share on other sites

Hi!

 

I will try to address the '-->sub category' problem but for the rest, you are on your own! :-)

 

I think that to do what you are asking for needs redesigning the whole pdf-creating script and (unfortunately for you) I don't have the necessary time to do it ... it will be done in the future, because the code needs some clean-up, but I don't know when! Sorry!


Antonios

 

olympicslogo_en.gif

Share this post


Link to post
Share on other sites

Still cant get 1.6 to work, mmmm, posted errors in other thread no resolution yet to these little errors stopping 1.6 from working.


Always seeking & Desperate to find a solution!

Share this post


Link to post
Share on other sites

I admin header:

Error: PDF directory does not exist. Please set this in Configuration --> PDF Catalog.

Error: PDF Template file does not exist. Please set this in Configuration --> PDF Catalog or check the installation of PDF Catalog Add-on.

 

Admin centre:

PDF directory: /var/www/html/retail/DIR_WS_PDF_DIRECTORY


Always seeking & Desperate to find a solution!

Share this post


Link to post
Share on other sites
Admin centre: PDF directory: /var/www/html/retail/DIR_WS_PDF_DIRECTORY

 

Where does this path comes from??


Antonios

 

olympicslogo_en.gif

Share this post


Link to post
Share on other sites

admin/tools/generate catalog(s) on click I get this page up admin/pdf_catalog.php but I get them errors up also.


Always seeking & Desperate to find a solution!

Share this post


Link to post
Share on other sites

Hi!

 

After some hours of checking and coding, here is version 1.6 alpha of the PDF catalog script ... only a few steps away from the official release, which will be posted in the contributions section.

 

The database issue should be OK now, there is a database installation script, the error checking thing should work now correctly (j0ker, please try the new version and tell me!), now also checking for not supported file types.

 

Until the final release, I will work on the template files and on some language files, the administration part of the script should be fine now!

 

Get it here!

 

Your comments are expected!!

 

Regards,

 

Antonios


Antonios

 

olympicslogo_en.gif

Share this post


Link to post
Share on other sites

A few questions about the new version 1.6:

Is it right, that in the admin I can only configure 3 things and the rest I have to do in the templates? Or where ist the possibility to change the looking of the pdf like in 1.5.1 (show manufacture, ...)?

Where can I configure that I do not want .zip files? They do not work on my server:

Abort pclzip.lib.php : Missing zlib extensions

After this error and going back to /admin/pdf_catalog.php I can see a new createt pdf. I can also download it from the admin. In the catalog area I see this:

Download PDF Catalog

You can download a PDF version of our entire catalog!

(0.00 Mb)

palmerimport_2.zip (0.00 Mb)

No pdf and the .zip file is not working.

Share this post


Link to post
Share on other sites

I get this problem also I am waiting for the new version as this is alpha I am using.


Always seeking & Desperate to find a solution!

Share this post


Link to post
Share on other sites

Sugestion for multi-language supported Adobe link, based on version 1.5.1:

in pdf_catalogue_info.php replace this code

        <td class="main" align="center"><?php 
   echo '<a href="http://www.adobe.com/products/acrobat/readstep2.html" target="_blank">';
   echo tep_image(DIR_WS_IMAGES . 'getacro.gif'); 
   ?></a></td>

with this

        <td class="main" align="left"><?php 
   echo TEXT_LINK;
   echo tep_image(DIR_WS_IMAGES . 'getacro.gif'); 
   ?></td>

and in the language file add this

define('TEXT_LINK', '<a href="http://www.adobe.de/products/acrobat/readstep2.html?c=de" target="_blank">');

This is a example for the german Adobe link. For other languages visit the Adobe site and copy and replace the link for each language you use. Now your customers can see the Adobe site in their language.

 

Maybe a good thing to be integrated in a new version.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×