[contact-form-7 id="24078" title="Feedback EN"]

osCommerce. How to add a new page with the link in Information module

This tutorial will show you how to add a new page with the link in Information module.

osCommerce. How to add a new page with the link in Information module

  1. We won’t create a new page from scratch. Let’s take a Shipping page as a base for our new page. Open osCommerce installation directory and locate shipping.php file.

  2. Copy the file and rename it. For example, to feed.php.

  3. Open includes/languages/your_language directory. Locate shipping.php file, copy it and rename to feed.php.

  4. Open feed.php file and change its content:

    define('NAVBAR_TITLE', 'Shipping & Returns');
    define('HEADING_TITLE', 'Shipping & Returns');
    define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.');
  5. Open includes folder and open filenames.php file. Add new line and define new filename as follows:

    define('FILENAME_FEED', 'feed.php');
  6. In the catalog/feed.php file replace FILENAME_SHIPPING with FILENAME_FEED.

  7. In /includes/modules/boxes/bm_information.php look for:

    <ul class="information">

    and add the following coding:

    '    <li>' . tep_draw_box_list_top() . '<a href="' . tep_href_link(FILENAME_FEED) . '"><i class="icon-ok"></i>' . MODULE_BOXES_INFORMATION_BOX_FEED . '</a>' . tep_draw_box_list_bottom() . '</li>'.
  8. Open includes/languages/english/modules/boxes/bm_information.php file and add the coding:

    define('MODULE_BOXES_INFORMATION_BOX_FEED', 'Feed');
  9. Click the Save Changes button in the upper right corner of the screen to activate it. And check the website to see changes.

Feel free to check the detailed video tutorial below:

osCommerce. How to add a new page with the link in Information module