Post by Yosuf » Mon Dec 06, 2010 4:44 am

Hi,

By selecting a different language than English some of the information on the Information module does not appear in the selected language. I did a bit modification and it's working fine. Here is how I did it.

First:
Open catalog\language\YourLanguage\module\information.php
Add the following according to your desired language(Dutch/Nederlands in my case):

Code: Select all

$_['text_about']  = 'Over Ons';
$_['text_privacy']  = 'Privacy';
$_['text_terms']  = 'Voorwaarden';  
Please modify all the languages which is used at your webshop.


Next:
Open catalog\controller\module\information.php
And modify as follow:

Code: Select all

        foreach ($this->model_catalog_information->getInformations() as $result) {
//begin of modification
            if($result['title'] == "About Us"){ $result['title'] =$this->language->get('text_about'); }
            else if($result['title'] == "Privacy Policy"){ $result['title'] =$this->language->get('text_privacy'); }
            else if($result['title'] == "Terms & Conditions"){ $result['title'] =$this->language->get('text_terms'); }
//end of modification

              $this->data['informations'][] = array(
                'title' => $result['title'],
                'href'  => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=information/information&information_id=' . $result['information_id'])
              );
        }  
As you see, three conditions are added in the foreach loop.

Hope it is useful.

Ciao

Newbie

Posts

Joined
Mon Dec 06, 2010 4:21 am
Who is online

Users browsing this forum: No registered users and 2 guests