Jump to content
Studio1one

Språk + Valuta ?

Recommended Posts

Hur har ni det?

Om jag nu har min butik i 5-6 språk och vill att t.ex om en norsk skall handla så klickar denne på norsk flagga och om jag då vill ha NOK som valuta (bestämt). Hur gör jag då?

 

Eller hur har ni gjort? :wacko:

Share this post


Link to post
Share on other sites

Hittade detta via min vän herr google, har inte provat men kan kanske hjälpa dig?

http://customprestsh...pending-on.html

 

 

Have multi languages and multi currencies prestashop store ? I think you want to have auto select currencies when your visitors is select one language. Here is How to Set Currency Depending on the Language.

 

First in prestashop Back Office, find id for each currency and each language, after that

 

Find init.php at your prestashop folder, before the following code :

$currency = Tools::setCurrency();

Place below code :

 

 

if ($cookie->id_lang == 1){set $cookie->id_currency = 2;}else{set $cookie->id_currency = 4;}

Note: the id for languages and currencies above is just example, use your own id.

 

mvh

/Max

Edited by maxa (see edit history)

Share this post


Link to post
Share on other sites

Ja just de, styrt genom dom berömda kakorna, vill man ha det så eller vill man ha det manuellt?

 

För och nackdelar?

Han måste ha snackat i natt mössan som skrev det där, för finns inget sån i den php filen. :-(

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More