Adding Language Switcher to neros

Hello,

I just installed neros and it is a really great template!
But now i am trying to find out how to add the language selecter and currency selector.

I looked on the forum and found posts for other templates and i tried to follow those but they failed to work
for neros.

I would like to add it into the header

Thanks

Bart

3 answers

Profile photo of Css Magician 0.00 $tone January 4, 2013
Public

Hello,

I just installed neros and it is a really great template!
But now i am trying to find out how to add the language selecter and currency selector.

I looked on the forum and found posts for other templates and i tried to follow those but they failed to work
for neros.

I would like to add it into the header

Thanks

Bart

Dear bthomsin,

please replace the code in file page.xml

Code:

<block type="page/html_header" name="header" as="header">
                <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
				<block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
				<block type="page/template_links" name="logout.links" as="logoutLinks" template="page/template/logoutlinks.phtml" />
				<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                    <label>Navigation Bar</label>
                    <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
                </block>
            </block>

to

Code:

<block type="page/html_header" name="header" as="header">
                <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
				<block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
                <block type="page/template_links" name="top.links" as="topLinks" />
				<block type="page/template_links" name="logout.links" as="logoutLinks" template="page/template/logoutlinks.phtml" />
				<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                    <label>Navigation Bar</label>
                    <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
                </block>
            </block>

and replace the code in file header.phtml

PHP Code:

<div class="quick-access">
                <p><?php echo $this->getWelcome() ?></p>
                <div class="shop-access">
                    <?php echo $this->getChildHtml('customer_account_navigation'); ?>
                    <?php echo $this->getChildHtml('topLinks'); ?>
                    <?php echo $this->getChildHtml('logoutLinks'); ?>
                </div>
                
          </div>


to

PHP Code:

<div class="quick-access">
                [COLOR="#800000"]<?php echo $this->getChildHtml('store_language'); ?>[/COLOR]
                <p><?php echo $this->getWelcome() ?></p>
                <div class="shop-access">
                    <?php echo $this->getChildHtml('customer_account_navigation'); ?>
                    <?php echo $this->getChildHtml('topLinks'); ?>
                    <?php echo $this->getChildHtml('logoutLinks'); ?>
                </div>
                
          </div>


after that, you can add the css into css file:

Code:

.form-language { margin-left: 20px; }
#1
Profile photo of Ziven Staff 100660.00 $tone September 10, 2014
Public

Dear dbosnj35,

You can download attachment and copy to folder "app\design\frontend\default\jm_nerostemplate\cur rency"

and replace the code in file page.xml

Code:

<block type="page/html_header" name="header" as="header">
                <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
				<block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
				<block type="page/template_links" name="logout.links" as="logoutLinks" template="page/template/logoutlinks.phtml" />
				<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                    <label>Navigation Bar</label>
                    <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
                </block>
            </block>

to

Code:

<block type="page/html_header" name="header" as="header">
                <block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
				<block type="page/html_notices" name="global_notices" as="global_notices" template="page/html/notices.phtml" />
                <block type="page/template_links" name="top.links" as="topLinks" />
				<block type="page/template_links" name="logout.links" as="logoutLinks" template="page/template/logoutlinks.phtml" />
				<block type="core/text_list" name="top.menu" as="topMenu" translate="label">
                    <label>Navigation Bar</label>
                    <block type="page/html_topmenu" name="catalog.topnav" template="page/html/topmenu.phtml"/>
                    <block type="directory/currency" name="custom_currency_selector" template="currency/currency.phtml"/>
                </block>
            </block>

and replace the code in file header.phtml
PHP Code:

Code:

<div class="quick-access">
     <p><?php echo $this->getWelcome() ?></p>
     <div class="shop-access">
       <?php echo $this->getChildHtml('customer_account_navigation'); ?>
       <?php echo $this->getChildHtml('topLinks'); ?>
       <?php echo $this->getChildHtml('logoutLinks'); ?>
     </div>
</div>

to
PHP Code:

Code:

<div class="quick-access">
        <?php echo $this->getChildHtml('store_language'); ?>
        <p><?php echo $this->getWelcome() ?></p>
        <div class="shop-access">
             <?php echo $this->getChildHtml('customer_account_navigation'); ?>
             <?php echo $this->getChildHtml('topLinks'); ?>
             <?php echo $this->getChildHtml('logoutLinks'); ?>
             <?php echo $this->getChildHtml('custom_currency_selector') ?>
        </div>             
</div>
#3

Please login or Register to Submit Answer

Written By

Comments