Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

text language selection?


Impudent1

Recommended Posts

This should be fairly simple but I am missing it. Could someone please show me how to connect the dots so to speak :)

 

I would like to not have icon flags for language selection, but rather it should be a text link. RE canadian french, belgian french etc. should all be just "french" and not a specific countrys (france) icon/flag

 

I thought maybe you could just go and do a direct link ala a href that was in the form of : http://www.yourwebsite.com/storefront/defa...php?language=en

 

but that doesnt seem to do anything but refresh the page? tia

 

Imp

Link to comment
Share on other sites

ah ok, I knew it was something fairly simplistic. since I see it has been viewed a few times I figured I would post what I ended up doing in case it helps others

 

in your includesboxeslanguages.php about line 30 there should be a line that says:

 

$languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';

 

I edited that to shorten it down to :

 

$languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . $value['name'] . '</a> ';

 

 

this seems to work although I am sure there is a more elegant fix

 

Imp

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...