Template do not show switch language

Hi friends,

I have 2 store view for two language: english and spanish and Setup the locale for each store view, but JM Rasite do not show the switch language anyway.

I had install the JM Rasite demo with the same result. Do not show the switch language in any place. only switch currency.

I went to /app/design/frontend/default/jm_rasite/layout/page.xml and see the block: line 63

//
block type="page/html_header" name="header" as="header">
<block type="page/template_links" name="top.links" as="topLinks"/>
<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
<block type="directory/currency" name="currency" as="currency" template="directory/currency.phtml"/>
//

It is ok.
In /app/design/frontend/default/jm_rasite/template/page/html/head.phtml i add:

//
<div class="quick-access">
<div class="shop-access">

<!-- ADDED --> <?php echo $this->getChildHtml(‘store_language’) ?> <!-- ADDED -->

<strong><?php echo $this->getWelcome() ?></strong>
<?php echo $this->getChildHtml(‘topLinks’) ?>
</div>

</div>
//

This is the same for all Magento templates including Mesolite that show it right .

Any suggestion?

Regards,

4 answers

Profile photo of Eddy Ricardo Santos 340.00 $tone June 1, 2010
Public

Hi all,

I have resolved the issue but i need any suggest of CSS class to correct position of switch language combo box? Now show in left side of Welcome message.

Regards,

#1
Profile photo of Css Magician 0.00 $tone June 3, 2010
Public

Dear richardmax,

I think you should add <!-- ADDED --> <?php echo $this->getChildHtml(‘store_language’) ?> <!-- ADDED --> as follow:

Code:

        <div id="ja-search" class="clearfix">
		<!-- ADDED --> <?php echo $this->getChildHtml('store_language') ?> <!-- ADDED -->
	        <?php echo $this->getChildHtml('topSearch') ?>
	</div>

Would you like edit file theme.css lines 280 as follow:

Code:

.language-switcher {
	float: left;
	padding: 0 5px 0 20px;
	margin: 5px 0 0 0;
}

edit lines 334 as follow:

Code:

#search_mini_form {
	float: right;
}

edit lines 320 as follow:

Code:

#ja-search {
	clear: right;
	z-index: 1000;
	margin-top: 5px;
	margin-right: 13px;
	float: right;
	width: 480px;
}

Contact me if you have any question.

#2
Profile photo of Eddy Ricardo Santos 340.00 $tone June 3, 2010
Public

Hi duchh,

I added in /app/design/frontend/default/jm_rasite/template/page/html/head.phtml without div tag because languages.phtml have the the div tag with class="language-switcher":

Code:

<?php echo $this->getChildHtml('store_language') ?>

And edit theme.css line 260:

Code:

.language-switcher {
	margin-left: 0;
	margin-bottom: 0;
	margin-right: 10px;
	margin-top: 5px;
	clear: right;
	position: relative;
	display: block;
	float: right;
	padding: 0 5px 0 20px;
}

Now i have the switch language at bottom of search box

With you suggest the switch language locate at the right of search box. Would be a matter of taste for everyone but is OK.

Thanks you very much

#3
Profile photo of Css Magician 0.00 $tone June 4, 2010
Public

Dear richardmax,

With your suggest , the switch language at bottom of search box because you have
Code:

clear: right;

at .language-switcher . I think you should remove it.

#4

Please login or Register to Submit Answer

Written By

Comments