- Posts: 19
- Thank you received: 0
default currency depending on language
I am using Hikashop Essential so I have no option of using the geolocation plugin for this issue.
It would be very useful for me to change the displayed (default) currency according to the joomfish language the user switched to on my page.
e.g. If the user switches to czech language, the prices are shown in czech crowns.
In addition I will display the currency switcher module for languages that are not associated with only one currency (e.g. english).
Is there a possibility to "link" the language and the currency?
Thanx in advance
Please Log in or Create an account to join the conversation.
Just to avoid any misunderstanding: you can upgrade from hikashop essential to hikashop business on that page: www.hikashop.com/en/component/hikashop/product/show/cid-3.html
You would have to edit the joomfish code where the language is switched to force the currency_id. You could add something like this:
$app =& JFactory::getApplication();
$app->setUserState('com_hikashop.currency_id',XX);
where XX is the id of the currency.
Please Log in or Create an account to join the conversation.
maybe I will switch to business.
If I add that code, as you said, XX would be the id of the language (the Joomfish-language-code I assume).
But is XX not the specific currency_id value?
Thanx,
kohypon
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 34
- Thank you received: 0
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Please Log in or Create an account to join the conversation.
Or maybe kohypon will answer you ?
Please Log in or Create an account to join the conversation.
- Posts: 34
- Thank you received: 0
Language and currency are by nature 'nearly' but not always linked...I know Spanish doesn't always link to Euros such as in latin America.
So here's another need; How can you change the language when the currency changes?
In my case this is to avoid a customer ordering a metric size using dollars when the imperial size is what he should see as that what is used and shipped to the US.
David Craig
Hikashop 1.5.0 Business edition
www.charitycanvasprints.com
Please Log in or Create an account to join the conversation.
There are a lot of languages in the euros zone so when someone selects the euro currency which language will you use ?
That's why we decided to use the geolocation of the user IP in order to select the currency automatically based on where the user is.
For the language selection, that should actually be handled automatically by joomfish based on the language of the browser.
Please Log in or Create an account to join the conversation.
- Posts: 152
- Thank you received: 0
Create your own style of luxury bespoke furniture online
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Regarding the currency displayed, you can still do that with the geolocation system in HikaShop.
Please Log in or Create an account to join the conversation.
There must be possibility to assign currency to language.
Ofcourse you can paste this:
Currency changes, but page needs to refresh before you actually can see it.
Please Log in or Create an account to join the conversation.
header('Location: '.$_SERVER);
but you need to do it only when the currency was not set previously. So like that:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Why it doesn't ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Posts: 4
- Thank you received: 0
Please Log in or Create an account to join the conversation.