Goldeye Posted April 7, 2015 Share Posted April 7, 2015 How do I add to the 'Information' section in version 2.3.4. I want to add more than: Shipping & ReturnsPrivacy NoticeConditions of UseContact Us for topics Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 7, 2015 Share Posted April 7, 2015 Open the includes/modules/boxes/bm_information.php file, copy one of the existing links and change it to the page you want to load. The definitions for the text go in the file by the same name in the languages directory. 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 Link to comment Share on other sites More sharing options...
Goldeye Posted April 7, 2015 Author Share Posted April 7, 2015 I get this message Fatal error: Cannot redeclare class bm_information in /nfsweb/virtualdomains/devdir.kangapouch.ca/catalog/includes/modules/boxes/bm_information.php on line 13 Link to comment Share on other sites More sharing options...
Goldeye Posted April 7, 2015 Author Share Posted April 7, 2015 I also can't get back to the original version although I had saved this file and have re-uploaded the original file. Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 7, 2015 Share Posted April 7, 2015 It sounds like you copied all of the contents or, at least, too much of them. That error means the class name, which is near the top of the file, is being used twice, which is illegal. Did you change some other file? Did you make a copy of the bm_information.php file and leave the copy in the directory? 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 Link to comment Share on other sites More sharing options...
Goldeye Posted April 8, 2015 Author Share Posted April 8, 2015 It was tied to /catalog/includes/languages/english/modules/boxes/bm_information.php file. Now that everyhting is back to the original version it works again. So does that mean that I also need to change this file to reflect bm_information.php file in the catalog/includes/modules/boxes/bm_information.php? Link to comment Share on other sites More sharing options...
Hotclutch Posted April 8, 2015 Share Posted April 8, 2015 It was tied to /catalog/includes/languages/english/modules/boxes/bm_information.php file. Now that everyhting is back to the original version it works again. So does that mean that I also need to change this file to reflect bm_information.php file in the catalog/includes/modules/boxes/bm_information.php? yes, you need to edit both. Link to comment Share on other sites More sharing options...
ClauDom Posted July 22, 2015 Share Posted July 22, 2015 Hi, sorry if it sounds stupid, but I'm new on this and also I'm trying to delete/add some links in the information box.... I'd like to add that also it is necessary to define the filename of the new link into /catalog/includes/filenames.php Link to comment Share on other sites More sharing options...
ClauDom Posted July 22, 2015 Share Posted July 22, 2015 A small contribution: Here is my procedure: To Add an item to the information box, for example a new link "About Us"Edit:catalog/includes/modules/boxes/bm_information.phpAdd in function execute() as an example: ' <a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . MODULE_BOXES_INFORMATION_BOX_ABOUT . '</a><br />' .Then letś go to the languages files:Edit:catalog/includes/languages/english/modules/boxes/bm_information.phpadd:define('MODULE_BOXES_INFORMATION_BOX_ABOUT', 'About Us');If you have another language, repeat the same...Example, Edit:catalog/includes/languages/espanol/modules/boxes/bm_information.phpadd:define('MODULE_BOXES_INFORMATION_BOX_ABOUT', 'Acerca de Nosotros');Edit:/catalog/includes/filenames.phpAdd:define('FILENAME_ABOUT_US', 'about_us.php');Create the form for the new screen item, it could be copied from another, example:copy public_html/catalog/conditions.php -> about_us.phpEdit about_us.phpModify the next lines: require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US));Create the file about_us.php for language english for example copying from a similar onecopy catalog/includes/languages/english/conditions -> about_us.phpModify about_us.php:define('NAVBAR_TITLE', 'About Us');define('HEADING_TITLE', 'About Us');define('TEXT_INFORMATION', 'Put here something about our Company.');Copy last about_us.php to another languages and edit Example:Copy to: catalog/includes/languages/espanol/about_us.phpAnd edit it:define('NAVBAR_TITLE', 'Acerca de Nosotros');define('HEADING_TITLE', 'Acerca de Nosotros');define('TEXT_INFORMATION', 'Poner algo aquí acerca de nuestra Empresa.'); Tested! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.