Guest Posted May 14, 2011 Share Posted May 14, 2011 (edited) 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 May 14, 2011 by djramm Quote Link to comment Share on other sites More sharing options...
germ Posted May 14, 2011 Share Posted May 14, 2011 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>' . Quote 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 More sharing options...
Guest Posted May 15, 2011 Share Posted May 15, 2011 From the install directions: All i can say is oops i had my drunk glasses on thanks for that much appreciated. Regards DJ Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2011 Share Posted May 15, 2011 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 Quote Link to comment Share on other sites More sharing options...
germ Posted May 15, 2011 Share Posted May 15, 2011 Have a peek at this post If you still need help let me know and I'll figure the code out and post it. Quote 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 More sharing options...
Guest Posted May 15, 2011 Share Posted May 15, 2011 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2011 Share Posted May 15, 2011 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 Quote Link to comment Share on other sites More sharing options...
germ Posted May 15, 2011 Share Posted May 15, 2011 $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. Quote 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 More sharing options...
Guest Posted May 15, 2011 Share Posted May 15, 2011 (edited) $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 May 15, 2011 by djramm Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2011 Share Posted May 15, 2011 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2011 Share Posted May 15, 2011 I Fixed it Thanks for all you help Regards DJ :lol: :rolleyes: :thumbsup: Quote Link to comment Share on other sites More sharing options...
germ Posted May 15, 2011 Share Posted May 15, 2011 :thumbsup: Quote 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 More sharing options...
OSC-Sevilla Posted July 15, 2011 Share Posted July 15, 2011 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" Quote Link to comment Share on other sites More sharing options...
apolyshow Posted July 31, 2011 Share Posted July 31, 2011 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? Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted July 31, 2011 Share Posted July 31, 2011 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? Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted August 1, 2011 Share Posted August 1, 2011 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.... Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
♥kymation Posted August 1, 2011 Share Posted August 1, 2011 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 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
apolyshow Posted August 1, 2011 Share Posted August 1, 2011 (edited) 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 August 1, 2011 by apolyshow Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted August 1, 2011 Share Posted August 1, 2011 (edited) 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 August 1, 2011 by apolyshow Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted August 1, 2011 Share Posted August 1, 2011 (edited) You can see the mess here http://www.iliofos.gr/estore/pdf_catalogue_info.php Edited August 1, 2011 by apolyshow Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted August 1, 2011 Share Posted August 1, 2011 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. Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
apolyshow Posted August 1, 2011 Share Posted August 1, 2011 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.... Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
actarus1011 Posted August 7, 2011 Share Posted August 7, 2011 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. Quote Link to comment Share on other sites More sharing options...
apolyshow Posted October 11, 2011 Share Posted October 11, 2011 Did you find a solution? Quote One amateur made the Arc, 5.000 pro made the Titanic... Link to comment Share on other sites More sharing options...
OSC-Sevilla Posted March 5, 2012 Share Posted March 5, 2012 has anyone upgraded the the FPDF.php to the latrest version that allows you to use the logos as png files . or has alpha channel support????? www.fpdf.org Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.