Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

adding to the 'Information' section


Goldeye

Recommended Posts

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.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

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

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.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

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

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

  • 3 months later...

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

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

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

add:
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.php

add:
define('MODULE_BOXES_INFORMATION_BOX_ABOUT', 'Acerca de Nosotros');

Edit:
/catalog/includes/filenames.php

Add:
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.php

Edit about_us.php

Modify 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 one

copy catalog/includes/languages/english/conditions -> about_us.php

Modify 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.php
And 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...