Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC PDF Catalogue 2.1


Guest

Recommended Posts

I have installed this contribution and have no errors no problems other than there is no sign of the contribution in my shop admin area. Please help

 

DJ

 

link for contribution here My link

Edited by djramm
Link to comment
Share on other sites

From the install directions:

 

4 - In catalog/admin/includes/boxes/tools.php, or any other box, insert following line :

 

// BOF PDF Catalogue

// EOF PDF Catalogue

 

'<a href="' . tep_href_link(FILENAME_PDF_CATALOGUE) . '" class="menuBoxContentLink">' . BOX_TOOLS_PDF_CATALOGUE . '</a><br>' . // PDF Catalog v.1.51

'<a href="' . tep_href_link(FILENAME_PDF_DEFINE_INTRO) . '" class="menuBoxContentLink">' . BOX_INFORMATION_PDF_DEFINE_INTRO . '</a><br>' . // PDF Catalog v.1.55

'<a href="' . tep_href_link(FILENAME_PDF_LINK) . '"class="menuBoxContentLink" target="_blank" >' . BOX_TOOLS_PDF_LINK. '</a><br>' .

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

ok i have look at the code i need to place in the file but I'm now on 2.3.1 and it looks like the code is for 2.2.

 

Is it a case of just changing the code so it looks like the code in there for 2.3.1 or is it more involved.

 

 

DJ

Link to comment
Share on other sites

Have a peek at this post

 

If you still need help let me know and I'll figure the code out and post it.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Have a peek at this post

 

If you still need help let me know and I'll figure the code out and post it.

Already did that thanks again this is get easy for me now just unsure exactly what to do most of the time i guess right.

 

Regards

DJ

Link to comment
Share on other sites

its giving me an error now

 

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/dcsstor1/public_html/shop/admin/includes/boxes/tools.php on line 73.

 

 

 

here is the code from that area

 

 

$cl_box_groups[] = array(
   'heading' => BOX_HEADING_TOOLS,
   'apps' => array(
     array(
       'code' => FILENAME_ACTION_RECORDER,
       'title' => BOX_TOOLS_ACTION_RECORDER,
       'link' => tep_href_link(FILENAME_ACTION_RECORDER)
     ),
     array(
       'code' => FILENAME_BACKUP,
       'title' => BOX_TOOLS_BACKUP,
       'link' => tep_href_link(FILENAME_BACKUP)
     ),
     array(
       'code' => FILENAME_BANNER_MANAGER,
       'title' => BOX_TOOLS_BANNER_MANAGER,
       'link' => tep_href_link(FILENAME_BANNER_MANAGER)
     ),
     array(
       'code' => FILENAME_CACHE,
       'title' => BOX_TOOLS_CACHE,
       'link' => tep_href_link(FILENAME_CACHE)
     ),
     array(
       'code' => FILENAME_DEFINE_LANGUAGE,
       'title' => BOX_TOOLS_DEFINE_LANGUAGE,
       'link' => tep_href_link(FILENAME_DEFINE_LANGUAGE)
     ),
     array(
       'code' => FILENAME_MAIL,
       'title' => BOX_TOOLS_MAIL,
       'link' => tep_href_link(FILENAME_MAIL)
     ),
     array(
       'code' => FILENAME_NEWSLETTERS,
       'title' => BOX_TOOLS_NEWSLETTER_MANAGER,
       'link' => tep_href_link(FILENAME_NEWSLETTERS)
     ),
     array(
       'code' => FILENAME_SEC_DIR_PERMISSIONS,
       'title' => BOX_TOOLS_SEC_DIR_PERMISSIONS,
       'link' => tep_href_link(FILENAME_SEC_DIR_PERMISSIONS)
     ),
     array(
       'code' => FILENAME_SERVER_INFO,
       'title' => BOX_TOOLS_SERVER_INFO,
       'link' => tep_href_link(FILENAME_SERVER_INFO)
     ),
     array(
       'code' => FILENAME_VERSION_CHECK,
       'title' => BOX_TOOLS_VERSION_CHECK,
       'link' => tep_href_link(FILENAME_VERSION_CHECK)
     ),
     array(
       'code' => FILENAME_WHOS_ONLINE,
       'title' => BOX_TOOLS_WHOS_ONLINE,
       'link' => tep_href_link(FILENAME_WHOS_ONLINE)
    ),
     array(
       'code' =>FILENAME_PDF_CATALOGUE
       'title' =>BOX_TOOLS_PDF_CATALOGUE
       'link' =>tep_href_link(FILENAME_PDF_CATALOGUE)
    ),
     array(
       'code' =>FILENAME_PDF_DEFINE_INTRO
       'title' =>BOX_INFORMATION_PDF_DEFINE_INTRO
       'link' =>tep_href_link(FILENAME_PDF_DEFINE_INTRO)
    ),
     array(
       'code' =>FILENAME_PDF_LINK
       'title' =>BOX_TOOLS_PDF_LINK
       'link' =>tep_href_link(FILENAME_PDF_LINK)
     )
   )
 );

 

 

I counted the right amount of brackets or am I missing the big picture

 

Regards

 

DJ

Link to comment
Share on other sites

$cl_box_groups[] = array( 
   'heading' => BOX_HEADING_TOOLS, 
   'apps' => array( 
     array( 
       'code' => FILENAME_ACTION_RECORDER, 
       'title' => BOX_TOOLS_ACTION_RECORDER, 
       'link' => tep_href_link(FILENAME_ACTION_RECORDER) 
     ), 
     array( 
       'code' => FILENAME_BACKUP, 
       'title' => BOX_TOOLS_BACKUP, 
       'link' => tep_href_link(FILENAME_BACKUP) 
     ), 
     array( 
       'code' => FILENAME_BANNER_MANAGER, 
       'title' => BOX_TOOLS_BANNER_MANAGER, 
       'link' => tep_href_link(FILENAME_BANNER_MANAGER) 
     ), 
     array( 
       'code' => FILENAME_CACHE, 
       'title' => BOX_TOOLS_CACHE, 
       'link' => tep_href_link(FILENAME_CACHE) 
     ), 
     array( 
       'code' => FILENAME_DEFINE_LANGUAGE, 
       'title' => BOX_TOOLS_DEFINE_LANGUAGE, 
       'link' => tep_href_link(FILENAME_DEFINE_LANGUAGE) 
     ), 
     array( 
       'code' => FILENAME_MAIL, 
       'title' => BOX_TOOLS_MAIL, 
       'link' => tep_href_link(FILENAME_MAIL) 
     ), 
     array( 
       'code' => FILENAME_NEWSLETTERS, 
       'title' => BOX_TOOLS_NEWSLETTER_MANAGER, 
       'link' => tep_href_link(FILENAME_NEWSLETTERS) 
     ), 
     array( 
       'code' => FILENAME_SEC_DIR_PERMISSIONS, 
       'title' => BOX_TOOLS_SEC_DIR_PERMISSIONS, 
       'link' => tep_href_link(FILENAME_SEC_DIR_PERMISSIONS) 
     ), 
     array( 
       'code' => FILENAME_SERVER_INFO, 
       'title' => BOX_TOOLS_SERVER_INFO, 
       'link' => tep_href_link(FILENAME_SERVER_INFO) 
     ), 
     array( 
       'code' => FILENAME_VERSION_CHECK, 
       'title' => BOX_TOOLS_VERSION_CHECK, 
       'link' => tep_href_link(FILENAME_VERSION_CHECK) 
     ), 
     array( 
       'code' => FILENAME_WHOS_ONLINE, 
       'title' => BOX_TOOLS_WHOS_ONLINE, 
       'link' => tep_href_link(FILENAME_WHOS_ONLINE) 
    ), 
     array( 
       'code' =>FILENAME_PDF_CATALOGUE,
       'title' =>BOX_TOOLS_PDF_CATALOGUE,
       'link' =>tep_href_link(FILENAME_PDF_CATALOGUE) 
    ), 
     array( 
       'code' =>FILENAME_PDF_DEFINE_INTRO,
       'title' =>BOX_INFORMATION_PDF_DEFINE_INTRO,
       'link' =>tep_href_link(FILENAME_PDF_DEFINE_INTRO) 
    ), 
     array( 
       'code' =>FILENAME_PDF_LINK,
       'title' =>BOX_TOOLS_PDF_LINK,
       'link' =>tep_href_link(FILENAME_PDF_LINK) 
     ) 
   ) 
 );

Try that.

 

You didn't put commas at the end of some of the added lines.

 

I haven't tried this code on my localhost so it's just an educated(??) guess.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

$cl_box_groups[] = array( 
   'heading' => BOX_HEADING_TOOLS, 
   'apps' => array( 
     array( 
       'code' => FILENAME_ACTION_RECORDER, 
       'title' => BOX_TOOLS_ACTION_RECORDER, 
       'link' => tep_href_link(FILENAME_ACTION_RECORDER) 
     ), 
     array( 
       'code' => FILENAME_BACKUP, 
       'title' => BOX_TOOLS_BACKUP, 
       'link' => tep_href_link(FILENAME_BACKUP) 
     ), 
     array( 
       'code' => FILENAME_BANNER_MANAGER, 
       'title' => BOX_TOOLS_BANNER_MANAGER, 
       'link' => tep_href_link(FILENAME_BANNER_MANAGER) 
     ), 
     array( 
       'code' => FILENAME_CACHE, 
       'title' => BOX_TOOLS_CACHE, 
       'link' => tep_href_link(FILENAME_CACHE) 
     ), 
     array( 
       'code' => FILENAME_DEFINE_LANGUAGE, 
       'title' => BOX_TOOLS_DEFINE_LANGUAGE, 
       'link' => tep_href_link(FILENAME_DEFINE_LANGUAGE) 
     ), 
     array( 
       'code' => FILENAME_MAIL, 
       'title' => BOX_TOOLS_MAIL, 
       'link' => tep_href_link(FILENAME_MAIL) 
     ), 
     array( 
       'code' => FILENAME_NEWSLETTERS, 
       'title' => BOX_TOOLS_NEWSLETTER_MANAGER, 
       'link' => tep_href_link(FILENAME_NEWSLETTERS) 
     ), 
     array( 
       'code' => FILENAME_SEC_DIR_PERMISSIONS, 
       'title' => BOX_TOOLS_SEC_DIR_PERMISSIONS, 
       'link' => tep_href_link(FILENAME_SEC_DIR_PERMISSIONS) 
     ), 
     array( 
       'code' => FILENAME_SERVER_INFO, 
       'title' => BOX_TOOLS_SERVER_INFO, 
       'link' => tep_href_link(FILENAME_SERVER_INFO) 
     ), 
     array( 
       'code' => FILENAME_VERSION_CHECK, 
       'title' => BOX_TOOLS_VERSION_CHECK, 
       'link' => tep_href_link(FILENAME_VERSION_CHECK) 
     ), 
     array( 
       'code' => FILENAME_WHOS_ONLINE, 
       'title' => BOX_TOOLS_WHOS_ONLINE, 
       'link' => tep_href_link(FILENAME_WHOS_ONLINE) 
    ), 
     array( 
       'code' =>FILENAME_PDF_CATALOGUE,
       'title' =>BOX_TOOLS_PDF_CATALOGUE,
       'link' =>tep_href_link(FILENAME_PDF_CATALOGUE) 
    ), 
     array( 
       'code' =>FILENAME_PDF_DEFINE_INTRO,
       'title' =>BOX_INFORMATION_PDF_DEFINE_INTRO,
       'link' =>tep_href_link(FILENAME_PDF_DEFINE_INTRO) 
    ), 
     array( 
       'code' =>FILENAME_PDF_LINK,
       'title' =>BOX_TOOLS_PDF_LINK,
       'link' =>tep_href_link(FILENAME_PDF_LINK) 
     ) 
   ) 
 );

Try that.

 

You didn't put commas at the end of some of the added lines.

 

I haven't tried this code on my localhost so it's just an educated(??) guess.

 

Ok will do

 

DJ

Edited by djramm
Link to comment
Share on other sites

Ok will do

 

DJ

That worked again something simple

now i have the admin area showing but when i try to produce the pdf catalogs i get this error

 

FPDF error: Image file has no extension and no type was specified: /home/dcsstor1/public_html/shop/images/PDF_LOGO

 

but the line of code it refers to is as follows

 

// the catalog/images directory! Will be resized to have a height of 30 pt.
define('store_logo.png','store_logo.png');

 

and the admin code is as follows

 

// the catalog/images directory! Will be resized to have a height of 30 pt.
define('store_logo.png','store_logo.png');

 

same same

the original code is as follows.

 

// the catalog/images directory! Will be resized to have a height of 30 pt.
define('PDF_LOGO','');

 

any ideas.

 

Regards

 

DJ

Link to comment
Share on other sites

:thumbsup:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 2 months later...

3. ISSUES THAT I WOULD LIKE TO RESOLVE.

 

Great Add-on!

OSC. 2.3.1.

 

 

PLEASE SEE IMAGE ATTACHED.

 

1. Change the text "Katalog" at the top of the page.

 

2. Change the colour of the "orange bar"

 

3. Notice the text in Spanish "... BAÑO" - it should be "... BAÑO" - how to address the encoding issues

 

-------

 

FINALLY - IF THERE ANY TEMPLATE STYLE MODIFICATIONS OUT THERE . WELL TO TRY AN TRANSFORM THE STOCK CATALOG INTO SOMETHING "WOW"

Link to comment
Share on other sites

  • 3 weeks later...

There is a problem or am i not reading something ?

 

4 - In catalog/includes/boxes/information.php insert following line in the links array :

 

'<a href="' . tep_href_link(FILENAME_PDF_CATALOGUE) . '">' . BOX_INFORMATION_PDF_CATALOGUE . '</a><br>'. // PDF Catalog v.1.51

 

I can't find such a file cause i don't have includes/boxes. Any ideas?

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

This what i am getting when i am trying to generate a file :

 

FPDF error:

 

Alpha channel not supported: /home/mydomain/public_html/estore/images/logo.png

 

Do you have any ideas?

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

This what i am getting when i am trying to generate a file :

 

FPDF error:

 

Alpha channel not supported: /home/mydomain/public_html/estore/images/logo.png

 

Do you have any ideas?

 

And when i am trying to see generated files then i am having blank pages....

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

catalog/includes/boxes/information.php can now be found in catalog/includes/modules/boxes/bm_information.php. You will need to convert your changes to the 2.3.1 standard; there are instructions here.

 

Images having an Alpha channel are not supported by the FPDF functions. You will need to convert your image to remove the Alpha channel.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

catalog/includes/boxes/information.php can now be found in catalog/includes/modules/boxes/bm_information.php. You will need to convert your changes to the 2.3.1 standard; there are instructions here.

 

Images having an Alpha channel are not supported by the FPDF functions. You will need to convert your image to remove the Alpha channel.

 

Regards

Jim

 

Good morning Jim

I have opened the photoshop and my png logo doesn't have alpha channel or this is what it said. But the osc 2.3.1 doesn't get any other type except png... Also when i put the code to bm_information then the page download our catalog is a mess...What did i do wrong? I didn't change anything to pdf_catalogue_info.php. Do i have to change something?

Edited by apolyshow

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

Ok i figure it out but now i have THREE good problems

First the View Pdf it always goes to admin/catalogues/catalogue_2.pdf and the file is saved to public_html/eshop/catalogues/catalogue_2.pdg

Secondly the pdf file that i am opening is a mess because it can't understand the Greek Language. I had just copy the eng files to a gr directory and just translate it them .Do i have to do and something else?

Third and last the page "Download Pdf Catalogue " is a mess. What is wrong?

 

Please give a shot here...

Edited by apolyshow

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

3. ISSUES THAT I WOULD LIKE TO RESOLVE.

 

Great Add-on!

OSC. 2.3.1.

 

 

PLEASE SEE IMAGE ATTACHED.

 

1. Change the text "Katalog" at the top of the page.

 

2. Change the colour of the "orange bar"

 

3. Notice the text in Spanish "... BAÑO" - it should be "... BAÑO" - how to address the encoding issues

 

-------

 

FINALLY - IF THERE ANY TEMPLATE STYLE MODIFICATIONS OUT THERE . WELL TO TRY AN TRANSFORM THE STOCK CATALOG INTO SOMETHING "WOW"

 

 

Gfasal give me a help please. I am having the same issues here.

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

Sold and the problem with directory nut my pdf file is like a mess cause i haven't found yet the problem with the greek language in my database so it takes the " 76?><>{$$%@&&&$??? " description and give me the same thing to the generated pdf.

Why is so dificult to make something? Do you have any ideas cause the only think that i am doing the last two months is to writing for oscommerce.

I can do it anymore....

One amateur made the Arc, 5.000 pro made the Titanic...

Link to comment
Share on other sites

HI.

 

Thanks for this contrib but I have some issues... One of them if that when I generate only one category catalog, the language of the selected catalog is not the correct one. Where can check the $languages_id that is used for generation of the PDF ?

 

Is it possible to add a page separator after each product ?

 

 

Thanks.

Link to comment
Share on other sites

  • 2 months later...
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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