Looking for old forum posts and information? View the old forum archive here »
Welcome to Vortx Community Forum, where you can ask questions and receive answers from the staff at Vortx and other members of the community.

If you had a user account on our previous forums website, you will need to register a new account here.

A static copy of our previous forums website is available online for reference. Click here to access the forum archive.

Learn more about...


How can I easily switch between locale's for the end user

I’m using an older version of store front (about 4 years old) and need to be able to easily change the locale the user sees based on something like a url argument (localesetting=en-US) that’s passed across. Is something like this doable?


The end goal is to be able to go to http://site.com/en and any sub pages and the “en” locale would load. If this isn’t the correct approach, then I’m open to other suggestions.



p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545; min-height: 14.0px} span.s1 {color: #e4af0a}

I can use .htaccess to pass in the right locale setting based on what subdirectory they hit (/en would send /?localesetting=en-US, etc)


Thank you

asked May 16, 2017 in MultiStore by RIFT (130 points)
edited May 23, 2017 by RIFT

1 Answer

0 votes
It varies a bit by version, but most of the older versions had a setlocale.aspx page that you can link to with a querystring to set the locale: yourstore.com/setlocale.aspx?localesetting=en-US
answered May 16, 2017 by Vortx ScottS (13,500 points)
Sorry, I should have mentioned that I need all sub pages as well.

So http://site.com/en/page1.html would load page1 in locale en. Is this doable or will I need to rely on the setlocal file.