Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

language selector in header


romalong

Recommended Posts

Posted

look into header.php in includes/ there you have to add the code of the language selector but i don't know where it is ....???? so sorry but i hope this will helt you

 

 

PS: $breadcrumb seaarch for this there is a line in header php like this ....$breadcrumb->trail ... this put out the links on the left lieke top >>..

after that the next ollum is the links on the right with My accoutn i don't know where you want to add it but i hope this will help you to find tho location into the header php

 

cu

Posted

catalog/includes/header.php

 

<?php include(DIR_WS_BOXES . 'languages.php'); ?>

 

then you will probably want to remove the box and background which means an alteration of includes/boxes/languages.php an addition to the catalog/stylesheet.css

and define a new box class in includes/classes/boxes.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

You can do it like this:

 

      <td><?php 
 if (!is_object($lng)) { 
   include(DIR_WS_CLASSES . 'language.php'); 
   $lng = new language; 
 } 

 if (getenv('HTTPS') == 'on') $connection = 'SSL'; 
 else $connection = 'NONSSL'; 

 $languages_string = ''; 
 reset($lng->catalog_languages); 
 while (list($key, $value) = each($lng->catalog_languages)) { 
   $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $connection) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a>  '; 
 } 

echo $languages_string; 
?></td>

 

Matti

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...