How to add language flags (images) QC 6.3

johny_summer

Avatar: johny_summer

2014-07-25 21:28

Hallo,
I have function 2 language - Czech and English in front end,
but the switch betwen them I have throw the text - link.
How to add language flags ( png or gif) as in DEMO Cart ??

I have Quick cart 6.3 now.

thank you
Johny

Johny

grafiQa

Avatar: grafiQa

2014-07-27 14:18

add small images of flags to the directory templates / img (for example: en.png ),
then in _head.php, link them to languages :
<a href="?sLang=en"><img src="$config['dir_skin']img/en.png" alt="lang en"></a>

Jarek

openzibi

Avatar: openzibi

2014-07-27 18:06

Second option:
<a href="./?sLang=en"><img src="$config['dir_skin']img/en.png" alt="lang en"></a>
In this way english flag image will be link to english main page.

StudioStrona - rhh.pl

openzibi

Avatar: openzibi

2014-07-27 18:13

Jarek's option is usefull if you have the same page, products ID in both languages version.

StudioStrona.pl

johny_summer

Avatar: johny_summer

2014-07-28 19:17

Thank you guys, but its not function, Im doing some badthing maybe.
Source code of header.php is difficult... where is the correct place
of yours "code" ? ( small images of flags I have in templates/.../img folder).

Johny

grafiQa

Avatar: grafiQa

2014-07-28 20:21

Where is it? Give me a link...

grafiQa.pl

johny_summer

Avatar: johny_summer

2014-07-28 20:28

http://www.cosavostra.cz/zkusebni/

grafiQa

Avatar: grafiQa

2014-07-29 00:50

I do not see the icons. Do you have added it to the code in _head.php?
In container of head1?

grafiQa.pl

johny_summer

Avatar: johny_summer

2014-07-29 08:38

I dont see" _head.php " only " header.php "
and there is it in code added:

div id="container">
  <div id="header">
    <div id="head1"><?php // first top menu starts here ?>
      <div class="container">
      <a href="?sLang=en"><img src="$config['dir_skin']img/en.png" alt="lang en"></a>
      <a href="?sLang=cs"><img src="$config['dir_skin']img/cz.png" alt="lang cs"></a>
         
        <?php echo $oPage->throwMenu1$iContent); // content of top menu first ?>
      </div>
    </div>
    <div id="head2"><?php // banner, logo and slogan starts here ?>
      <div class="container">
        <div id="logo"><?php // logo and slogan ?>
          <div id="title"><a href="./" tabindex="1"><?php echo $config['logo']; ?></a></div>
           <div id="slogan"><?php echo $config['slogan']; ?></div>
        </div>
      </div>
    </div>
    <div id="head3"><?php // second top menu starts here ?>
      <div class="container">
        <?php echo $oPage->throwMenu2$iContent); // content of top menu second ?>
      </div>
    </div>
  </div>
  <div id="body"<?php if( isset( $bOrderPage ) ) echo ' class="order"'?>>
    <div class="container">
      <div id="column"><?php 
        
if( !isset( $bOrderPage ) ){ // left column with left menu ?><?php
          
if( isset( $config['page_search'] ) && is_numeric$config['page_search'] ) && isset( $oPage->aPages[$config['page_search']] ) ){ // search form starts here ?>
            <form method="post" action="<?php echo $oPage->aPages[$config['page_search']]['sLinkName']; ?>" id="searchForm">
              <fieldset>
                <span><label for="<?php echo $lang['search']; ?>"><?php echo $lang['search']; ?></label><input type="text" size="15" name="sPhrase" id="<?php echo $lang['search']; ?>" value="<?php echo $sPhrase?>" class="input" maxlength="100" /></span>
                <em><input type="submit" value="<?php echo $lang['search']; ?> &raquo;" class="submit" /></em>
              </fieldset>
            </form><?php
          
}  // search form ends here ?><?php 
          
echo $oPage->throwMenu3$iContent); // content of left menu ?><?php 
        
}?>       
      </div>
      <div id="content">

 

Johny

johny_summer

Avatar: johny_summer

2014-07-29 09:02

I ve GOT iT....THANX ;-)

Johny

grafiQa

Avatar: grafiQa

2014-07-29 19:56

it looks good:)

Jarek

Back to top
about us | contact