- Posts: 575
- Thank you received: 11
change currency by GET or URL method
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
13 years 7 months ago - 13 years 7 months ago #92515
by ler@singmuiheng.com
change currency by GET or URL method was created by ler@singmuiheng.com
I want to set up something like fedex.com that let user chose their country then redirect them to a page, but the problem is the currency is not showing their country correctly
is it possible to set the link to some url that show the correct currency?
somehow maybe like www.hikashop.com/index.php?component=curr&id=USD ?
is it possible to set the link to some url that show the correct currency?
somehow maybe like www.hikashop.com/index.php?component=curr&id=USD ?
Last edit: 13 years 7 months ago by Jerome.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 7 months ago #92538
by Mohamed Thelji
Replied by Mohamed Thelji on topic change currency by GET or URL method
Hi,
I think that using the module "hikashop currency switcher" will do it, you'll just have to publish it through your joomla module manager.
Hope this will help you.
I think that using the module "hikashop currency switcher" will do it, you'll just have to publish it through your joomla module manager.
Hope this will help you.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 4
- Thank you received: 0
13 years 6 months ago #94868
by SaptarshiC
Replied by SaptarshiC on topic change currency by GET or URL method
Hi,
We have a client who wants his visitors to be able to select their region(and currency) before they move into the main site. We plan to have a separate html page for country selection which redirects to the main joomla site. Is there any way to set the visitors choice through the url?
We have a client who wants his visitors to be able to select their region(and currency) before they move into the main site. We plan to have a separate html page for country selection which redirects to the main joomla site. Is there any way to set the visitors choice through the url?
Please Log in or Create an account to join the conversation.
13 years 6 months ago #94875
by nicolas
Replied by nicolas on topic change currency by GET or URL method
Hi,
You can use such URL:
where 2 is the id of the currency in HikaShop.
You can use such URL:
Code:
http://www.hikashop.com/index.php?component=com_hikashop&ctrl=currency&task=update&hikashopcurrency=2
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 4
- Thank you received: 0
13 years 6 months ago - 13 years 6 months ago #94877
by SaptarshiC
Replied by SaptarshiC on topic change currency by GET or URL method
Hi,
I tried using the url. It didn't work. I also tried it with SEF urls turned off. Same results.
I'm trying it on the localhost. Is that an issue?
I used this url:
I tried using the url. It didn't work. I also tried it with SEF urls turned off. Same results.
I'm trying it on the localhost. Is that an issue?
I used this url:
Code:
http://localhost/fashionstore/index.php?component=com_hikashop&ctrl=currency&task=update&hikashopcurrency=2
Last edit: 13 years 6 months ago by SaptarshiC.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 4
- Thank you received: 0
13 years 6 months ago #94878
by SaptarshiC
Replied by SaptarshiC on topic change currency by GET or URL method
I also tried it on the HikaShop Demo site. Doesn't seem to work.
Please Log in or Create an account to join the conversation.
13 years 6 months ago #94895
by nicolas
Replied by nicolas on topic change currency by GET or URL method
It's "option" not "component" in the URL. I got perturbed by your URL 
so the full URL to change the currency is:
so the full URL to change the currency is:
Code:
http://www.hikashop.com/index.php?option=com_hikashop&ctrl=currency&task=update&hikashopcurrency=2
The following user(s) said Thank You: SaptarshiC
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 4
- Thank you received: 0
13 years 6 months ago - 13 years 6 months ago #94964
by SaptarshiC
Replied by SaptarshiC on topic change currency by GET or URL method
Thanks a lot!!! It works!
You will also need to add
to redirect. Otherwise it will show a blank page (but it will work).
I tried this:
You will also need to add
Code:
&return_url=http://some_url/
I tried this:
Code:
http://localhost/fashionstore/index.php?option=com_hikashop&ctrl=currency&task=update&hikashopcurrency=2&return_url=http://localhost/fashionstore/
Last edit: 13 years 6 months ago by SaptarshiC.
Please Log in or Create an account to join the conversation.
Time to create page: 0.190 seconds