If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

osCommerce. How to create custom page with link in footer/header menu (in multilingual website)

This tutorial will show you how to create new page(s) for multilingual osCommerce site.

osCommerce. How to create custom page linked to footer/header menu (in multilingual website)
  1. Let’s take a Shipping page as a template for our new page. Open osCommerce installation directory and locate shipping.php file.

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

  3. Open this file and change:

    
      require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING);
      $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));

    To:

      require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_NEWPAGE);
      $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_NEWPAGE));
  4. Make sure that this file includes the following:

    <?php echo TEXT_INFORMATION; ?> 

    TEXT_INFORMATION will include your page content defined in each language that you are using on your site:

    osc_newpage_01
  5. Open /includes folder and edit filenames.php file. Add new line and define new file name as follows:

    define('FILENAME_NEWPAGE', 'newpage.php');
    osc_newpage_02
  6. Open includes/languages/english directory. Locate shipping.php file, copy it and rename to newpage.php.

  7. Open newpage.php file and change its content:

      define('NAVBAR_TITLE', 'New Page');
      define('HEADING_TITLE', 'New Page');
      define('TEXT_INFORMATION', 'This will be our new page for English language.');
  8. Now we can add a new page and content for other languages that are available on your site.

  9. Open /includes/languages/your_language directory, for example /includes/languages/german.

  10. Locate shipping.php file, copy it and rename to newpage.php.

  11. Open newpage.php file and change its content:

      define('NAVBAR_TITLE', 'Neue Seite');
      define('HEADING_TITLE', 'Neue Seite');
      define('TEXT_INFORMATION', 'This will be our new page for German language');
    osc_newpage_03

Thank you for reading this tutorial. Now you know how to create new page(s) for multilingual osCommerce site.

Feel free to check the detailed video tutorial below:

osCommerce. How to create custom page linked to footer/header menu (in multilingual website)
 
Live Chat
We help you to choose the right product.
Start chat