OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Select your country!
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Contributions / Add-Ons > Languages and Zones
djp120
Hi,

I want to add a basic (non-oscommerce) page where shoppers can choose their country. It will then open oscommerce with that country selected in the header as well as selecting a defualt language for that country.

e.g. it defaults for UK and english. However, if a spanish customer selects country of origin as Spain on the homepage. "Spain" is displayed on the header and the language is selected as "Spanish".

Any ideas where to start?

Thanks
FWR Media
QUOTE (djp120 @ Dec 11 2007, 05:34 PM) *
Hi,

I want to add a basic (non-oscommerce) page where shoppers can choose their country. It will then open oscommerce with that country selected in the header as well as selecting a defualt language for that country.

e.g. it defaults for UK and english. However, if a spanish customer selects country of origin as Spain on the homepage. "Spain" is displayed on the header and the language is selected as "Spanish".

Any ideas where to start?

Thanks



Spanish e.g. would just require a link

CODE
<a href="www.mysite.com/index.php?language=es" title="Spanish language">Spanish</a>
djp120
QUOTE (Babygurgles @ Dec 11 2007, 06:08 PM) *
Spanish e.g. would just require a link

CODE
<a href="www.mysite.com/index.php?language=es" title="Spanish language">Spanish</a>


Thank you. Feel a little dim. blush.gif Any ideas, how a country can be sent (prob, just index.php?language=es&county=Spain), and if the header could grab the variable country and display the country. Does this variable need to be applied to the session so it always appear in the header as the user navigated around the site?

Thanks.
djp120
Any ideas?
satish
http://www.site.com/index.php?language=en

change en to which language You want it to.

Satish
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.