VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Initialize proper language on browser start
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

36 Posts

Posted - March 26 2010 :  17:08:57  Show Profile  Reply with Quote

I want to setup my webshop with 3 languages. I want to load the proper language immediately when the user starts browsing.

I think the best way herefore is to use "Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")" and not based on ip.

But how can I make sure that this check is only done at start and not eveytime my homepage is loaded. Do I need to setup a global.asa file or is there another function or sub routine in vpasp that runs only 1 time (when browsing starts)?

Thanks for any assistance or hints,

Trial and error

Starting Member

36 Posts

Posted - March 27 2010 :  14:54:22  Show Profile  Reply with Quote
Seems that I found a solution by placing a piece of code, based on "Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")" in the "sub shopinit" on the asp page "shop$db.asp. I did not need to use the global.asa file.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000