Studio1one Posted May 30, 2012 Share Posted May 30, 2012 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? Link to comment Share on other sites More sharing options...
maxa Posted May 31, 2012 Share Posted May 31, 2012 (edited) 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 May 31, 2012 by maxa (see edit history) Link to comment Share on other sites More sharing options...
Studio1one Posted May 31, 2012 Author Share Posted May 31, 2012 Hittade detta via min vän herr google, har inte provat men kan kanske hjälpa dig? http://customprestsh...pending-on.html mvh /Max Ja just de, styrt genom dom berömda kakorna, vill man ha det så eller vill man ha det manuellt? För och nackdelar? Link to comment Share on other sites More sharing options...
Studio1one Posted May 31, 2012 Author Share Posted May 31, 2012 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. :-( Link to comment Share on other sites More sharing options...
maxa Posted June 1, 2012 Share Posted June 1, 2012 Ok sorry. Här finner du två andra lösningar http://www.prestashop.com/forums/topic/151199-link-currency-to-language/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now