Jump to content

Urls & Iso And Language Codes


Recommended Posts

Is it possible to have URLs written in this form with the proper ISO codes and Language codes associated with them:
 
examplesite.com/en-ca (default)
examplesite.com/fr-qc
examplesite.com/en-us
examplesite.com/es-us

 

And then can we tie currency and set different products to the Canadian directories vs the US directories?

 
Can we also have the Canadian language customers only have the option to choose billing and shipping addresses in Canada and US language customers only have the option to choose billing and shipping addresses in the US?
Edited by 69star (see edit history)
Link to comment
Share on other sites

Hi, at this time native PrestaShop uses only the two character ISO code in URL's, the core hacks would be rather extensive but agree this would be a nifty feature and it would not surprise me to see this feature become part of core in near future.

 

I did write module that works with the full language codes in visitor browser because native PS will only interrogate the first browse language, and if not found use default.  I also extended to set currency support as well.

 

[Module] Advanced Visitor Language | Currency Localization Detection (IETF)

 

Happy localizing.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...