Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)
Shouldnt the bold bit be a file lke template.php?

 

Nope, that's why in configuration you have to put the full filename of the template file, with the extension!

 

Please uncomment line 47 ... it should read after uncommenting like following:

$debug = true;

 

Reload the page ... how are the pink messages on top doing?

Edited by detsouvalas

Antonios

 

olympicslogo_en.gif

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Wow did what you asked with debug and now pink errors growing:

 

DIR_WS_PDF_DIRECTORY:pdf_cat/ || PDF_FILENAME:Rainflower_DF || PDF_TEMPLATE:standart_enhanced.tpl.php

Error: PDF templates directory does not exist. Please set this in pdf_catalog.php.

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

DIR_OK:1 || FILE_OK:1

  • 2 weeks later...
Posted

Hi Tasos,

 

Any idea for greek fonts showing wrong.

el_GR.ISO_8859-7 local

 

I have the same problem with my PDF catalog, but fortunately there is a solution! :) I am in the process of compiling the necessary files to support greek caracters, I think I will have them ready (and tested) by Monday, I will post a message here when done!

 

For the statistics, which version of the script are you using, on what kind of server and operating system, did you had any concerns with the installation, the instructions, or whatever else?? Thanx for replying!

 

Have a nice weekend,

 

Antonis

Antonios

 

olympicslogo_en.gif

Posted

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

 

 

PS. Regarding greek fonts, I can email them upon request!!

Antonios

 

olympicslogo_en.gif

Posted

I have this contribution installed and working on one host. I copied the whole shop to another host and this is the only thing that is broken. I get this message when I click on Generate Catalog in admin.

Warning: fopen(/home/xxxxxx/public_html/active/catalogs/MCS Product Catalog_1.pdf): failed to open stream: Permission denied in /home/xxxxxx/public_html/active/admin/pdf_fpdf.php on line 1048

FPDF error: Unable to create output file: /home/xxxxxx/public_html/active/catalogs/MCS Product Catalog_1.pdf

I've set the permission on the catalogs directory to the required value but that wasn't it. Anyone have any idea what this message means?

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

  • 2 weeks later...
Posted (edited)

Okay, I'm a little confused. Don't Alpha releases come before Betas??? In the other thread on the 1.5 release you posted a 1.6 Beta and now the latest one seems to be an Alpha. Did we take a step backwards? :huh:

 

Thanx for all the hard work everyone has put in, :D

David

Edited by Dr_Frag
Posted
I have this contribution installed and working on one host. I copied the whole shop to another host and this is the only thing that is broken. I get this message when I click on Generate Catalog in admin.
Warning: fopen(/home/xxxxxx/public_html/active/catalogs/MCS Product Catalog_1.pdf): failed to open stream: Permission denied in /home/xxxxxx/public_html/active/admin/pdf_fpdf.php on line 1048

FPDF error: Unable to create output file: /home/xxxxxx/public_html/active/catalogs/MCS Product Catalog_1.pdf

I've set the permission on the catalogs directory to the required value but that wasn't it. Anyone have any idea what this message means?

 

Jack

Don't know if you've resolved this or not but try opening up the permissions to 777 and I'd suggest NOT using spaces in URLs. (It goes against the rules for URL syntax)

 

David

Posted

Wow, somebody was sleeping. :P

Two back to back $file= statements in pdf_catalog.php.

 

$file = DIR_WS_PDF_DIRECTORY . PDF_FILENAME . "_" . $languages_id . ".pdf";

$file = DIR_WS_PDF_DIRECTORY . $filename;

 

The same for the ZIP file.

I think what might have been meant is to have $file & $filename seperate/different so as not to display the whole path to the file. I changed it to read

 

$filename = PDF_FILENAME . "_" . $languages_id . ".pdf";

$file = DIR_WS_PDF_DIRECTORY . $filename;

 

That seems to be what was intended after looking at the language code section.

 

David

Posted
Don't know if you've resolved this or not but try opening up the permissions to 777 and I'd suggest NOT using spaces in URLs. (It goes against the rules for URL syntax)

 

David

Argh! Of course that's not valid. Can't believe I missed it. It worked fine on the Windows server I was on so never thought that might be the problem. Thanks for pointing that out. :)

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

You're welcome Jack.

 

 

I've found another little problem that someone brought up before. The fact that the first subcategories parent doesn't show in the TitreChapitre is a problem with the ParentsName function. Instead of while($k>0) it should be while($k>=0). But from what I can see the whole TitreChapitre printing is not implemented that well since a category without any subs gets printed like its a sub. And don't even get me started on the pagination. :o

 

My eyeballs can't take any more, I'm going to bed.

 

David

Not that I'm a PHP programmer by any stretch but I should be able to follow this code yet it's not making much sense.

Posted (edited)
Wow, somebody was sleeping.

 

Well, I don't know how this happens, but it's a fact that, like now, it's midnight in Athens and I am trying to figure out the file and filename question! :)

 

About the versions stuff, it's a fact that the letter alpha is before the letter beta ... I think that I prefer a kind of countdown in the versions! :D

 

Well, I think that now, after having received some feedback, I think that I can start considering the release of the final 1.6 version! :)

 

Oh, and working with the FPDF Class is not so easy as it seems ... ! :(

Edited by detsouvalas

Antonios

 

olympicslogo_en.gif

Posted

Antonios, great work, I have got the install of the alpha working admin 100% now good work, but when people try and select the pdf file I create I get a permissions error for this file.

 

I have tried 755 and also 777 for this file but no joy, any thoughts on this problem no hurry I have in test site not live site.

 

regards

Posted

Tried to edit last post wouldnt allow so excuse this post k, I have on pdf_catalog.php display of the download nut it shows 0.00 size and the file is almost 1mb in folder on server.

Posted

Also quick question plz anyone how do I change the price from euros to pounds

Posted

I was able to successfully install this contrib, but I was having errors as stated before:

 

I have on pdf_catalog.php display of the download nut it shows 0.00 size and the file is almost 1mb in folder on server.

 

Dr Frags edit to pdf_catalog.php helped correct this issue.

 

    $filename = PDF_FILENAME . "_" . $languages_id . ".pdf";
   
   $file = DIR_WS_PDF_DIRECTORY . $filename;

 

Hope this helps anyone else...

 

Thanks for this contrib BTW-Finally I have a PDF Catalog contrib that works!!

Posted

yahoo welldone this fixed me too, well the shop side anyrd, how do you change the euro to pund in the file?

Posted

just tried generating a catalogue and got this

 

Warning: imagecreatetruecolor(): Invalid image dimensions in /home/www/mharpboo/admin/pdf_catalogue.php on line 199

 

Warning: imagecopyresized(): supplied argument is not a valid Image resource in /home/www/mharpboo/admin/pdf_catalogue.php on line 201

 

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/www/mharpboo/admin/pdf_catalogue.php on line 203

"because it'll hurt more"- the greatest film of all time?

Posted

also, the images that are being generated in the catalogue are terrible quality

 

is there anyway to change this?

"because it'll hurt more"- the greatest film of all time?

Posted
just tried generating a catalogue and got this

 

For such an error, I would check the configuration (the part made in the files).

 

just tried generating a catalogue and got this

 

Is there a possibility to see the result of the script and the images used to generate the PDF Catalog?? Then I can maybe help you with the image quality!

Antonios

 

olympicslogo_en.gif

Posted
also, the images that are being generated in the catalogue are terrible quality

 

I found the address in an older post of yours!

Antonios

 

olympicslogo_en.gif

Posted

i dont understand what you want, please can you clarify?

 

thanks

"because it'll hurt more"- the greatest film of all time?

  • 3 weeks later...
Posted

I have finally got this great contrib goin, Antonios great job, what was my problem was the sql it had a typo error, which may have been mentioned but here it is, at the very end of the query is 'NULL', 'NULL' I modified this and removed the ' to look like this NULL, NULL and it all worked.

 

insert into configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) values ('20', 'PDF Catalog', 'PDF Catalog Configuration', '20', '1');

insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('200', 'PDF Catalog directory', 'DIR_WS_PDF_DIRECTORY', 'pdf_cat/', 'The directory where the generated PDF Catalog files will be stored <b>(with trailing slash!)</b>', '20', '1', '', '', NULL, NULL);

insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('201', 'Filename of the generated PDF files', 'PDF_FILENAME', 'Rainflower_DF', 'Filename to use as a base for the name of the generated PDF files!', '20', '2', '', '', NULL, NULL);

insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('202', 'PDF Template to use', 'PDF_TEMPLATE', 'pdf_html.php', 'Full filename of the PDF Template to use, with the extension!', '20', '3', '', '', 'NULL', 'NULL');

 

But I seem to remember a zip facility in somewhere, but I cant seem to find it now, any thoughts?

 

Also is it possible to disable certain categories which I dont need to include?

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...