Question regarding changing global currency default

Phoca Cart - complex e-commerce extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Question regarding changing global currency default

Post by Jan »

Hi, the plugin is based on Joomla language and this is all. E.g. users visits the site: www . site . com / de and not www . site . com / en. So the currency is set to EUR instead of GBP.

From technically point of view it is not difficult to add new parameter which will decide on other rule but the problem is to define such rule.

I can imagine the confusions where you are from Switzerland and your browser language is set to English and then the currency will be set for you to GBP (so maybe yes, browser language is not the good rule to change currency)

And not sure if this will be better for user IP (for this maybe some robust and complicated library needs to be uses and the outcome will be never 100%) :idea:

Jan
If you find Phoca extensions useful, please support the project

Tags:
Alexander
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 15 Jan 2020, 17:36

Re: Question regarding changing global currency default

Post by Alexander »

Hi Jan
Yes, your Plugin is very practical. Only my site setup and my country are difficult ;) My multilingual site is in hai.swiss with /de/ and /en/ for the 2 languages. But I automatically redirect hai.swiss/en to shark.swiss without language extension. Presently I check not for IP (because of the complicated Geo-Libraries) but for .swiss or .ch in the domain name of the customer. So I get about 80% of Swiss users. Better than nothing ;)
Kind regards

Alexander
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Question regarding changing global currency default

Post by Jan »

Hi, the plugin is very easily customizable. You can change the part which behaves based on Joomla languages and replace it with code which gets the domain name and set the currency based on domain name.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Question regarding changing global currency default

Post by Nidzo »

Can currency change be triggered by Joomla language switcher module?
Plugin works when you enter direct link to desired website language but when you land on default EN home page and you change to german language, currency does not change.

Tested in Phoca Cart v5.0.0Beta64
Joomla 5.1.2
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Question regarding changing global currency default

Post by Jan »

Hi, no, see the possible problem which can then occur:

viewtopic.php?p=175829#p175829
If you find Phoca extensions useful, please support the project
Post Reply