Post by czLEONcz » Sun May 10, 2009 1:21 am

Hi all,
how do I set up the language selection eshopu.
Positions at the top right of the basket right breadcrumb ???

Thank you very much.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by phpuk » Sun May 10, 2009 5:33 am

Hi,

I have done this very quickly so please test and get back to me if you have any problems.

Be careful of the duplicate variable $language and do not confuse them!

Note: I have added flag to the end of the variable name!

Script: catalog/controller/common/layout.php

Insert a new blank line after line 16 and add 'common/language',

So it looks like this:

Code: Select all

		$this->children = array(
         'common/language',
			'common/header',
			'common/footer'
		);
Script: catalog/controller/common/language.php

Edit line 34 to look like this:

Code: Select all

$this->id       = 'languageflag'; // Added flag
Script: catalog/view/theme/default/template/common/layout.php

Insert a new blank line after line 21 and enter this:

Code: Select all

    <div style="float:right;margin-top:-25px;margin-right:10px;"><?php echo $languageflag; ?></div>
I think that should be it.

Phil.

Global Moderator

Posts

Joined
Wed Mar 25, 2009 10:57 am

Post by czLEONcz » Sun May 10, 2009 6:39 am

Hi,
corrected
it's ok
I put it into another row :-[
Last edited by czLEONcz on Sun May 10, 2009 7:18 am, edited 1 time in total.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by phpuk » Sun May 10, 2009 7:09 am

Sorry the last instruction has a typo it should read insert a new blank line after line 22 and enter this:

The line after the <?php } ?>

Global Moderator

Posts

Joined
Wed Mar 25, 2009 10:57 am

Post by phpuk » Sun May 10, 2009 7:11 am

Also I see that the language is displayed to high so change the margin-top value to something like -15px.

Phil.

Global Moderator

Posts

Joined
Wed Mar 25, 2009 10:57 am

Post by czLEONcz » Sun May 10, 2009 7:21 am

phpuk wrote:Also I see that the language is displayed to high so change the margin-top value to something like -15px.

Phil.
Hi,
corrected
it's ok
I put it into another row

Thank you Phil

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by czLEONcz » Sun May 10, 2009 7:40 am

I have a problem, it is not compatible with IE 8 and Opera 10 build 1456
What can I please edit ???

Thank you very much for being willing to...

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by babaloo » Sun May 10, 2009 8:22 am


User avatar
New member

Posts

Joined
Sun Mar 29, 2009 1:44 am

Post by phpuk » Sun May 10, 2009 8:51 am

Ok I did say a very quick look :)

Try absolute positioning:

Code: Select all

<div style="position: absolute;top: 140px;right: 10px;"><?php echo $languageflag; ?></div>
Adjust the top: and right: values to suit your layout.

Phil.

Global Moderator

Posts

Joined
Wed Mar 25, 2009 10:57 am

Post by czLEONcz » Sun May 10, 2009 9:12 am

phpuk wrote:Ok I did say a very quick look :)

Try absolute positioning:

Code: Select all

<div style="position: absolute;top: 140px;right: 10px;"><?php echo $languageflag; ?></div>
Adjust the top: and right: values to suit your layout.

Phil.
Is it okay

Thank you Phil.

czLEONcz


New member

Posts

Joined
Fri Mar 20, 2009 5:35 pm

Post by hitu_125 » Wed May 20, 2009 8:41 pm

If I wish to set another language like spenishi, or french, what should we set in locale in admin side, and What should we do with the charset=UTF-8, will it show the exact character?

Newbie

Posts

Joined
Thu Apr 30, 2009 11:59 am
Who is online

Users browsing this forum: No registered users and 11 guests