[Skip to main content](#vessel-content)

#   Simulate (test) currency switcher

##

- **[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")**
- [![squareweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29471-squareweb "View squareweb's Profile") Topic Author
- [ Offline](/forum/user/29471-squareweb)

Less More

- Posts: 68
- Thank you received: 2
-
-

11 years 3 months ago [\#210459](#210459) by [squareweb](/forum/user/29471-squareweb "View squareweb's Profile")  *[Simulate (test) currency switcher](/forum/26-product-category-display/878551-simulate-test-currency-switcher#210459 "-- HikaShop version -- : latest business -- Joomla version -- : latest -- PHP version -- : 5.5 -- Browser(s) name and version -- : na -- Error-message(debug-mod must be tuned on) -- : na  Hi,  I've added the geolocation plugin and configured it (ipDBinfo account api-key etc.).  I wonder if there is a possibility to test (simulate) a different country.  I live in Europe (the Netherlands) and would like to check if US and UK-citizens wil see the right currency?  What happens if Australian citizen is visiting the site? will it display the main currency if Australian is not configured?  Thanks in advance.  Mark  Mark")* was created by *[squareweb](/forum/user/29471-squareweb "View squareweb's Profile")*

-- HikaShop version -- : latest business
-- Joomla version -- : latest
-- PHP version -- : 5.5
-- Browser(s) name and version -- : na
-- Error-message(debug-mod must be tuned on) -- : na

Hi,

I've added the geolocation plugin and configured it (ipDBinfo account api-key etc.).

I wonder if there is a possibility to test (simulate) a different country.

I live in Europe (the Netherlands) and would like to check if US and UK-citizens wil see the right currency?

What happens if Australian citizen is visiting the site? will it display the main currency if Australian is not configured?

Thanks in advance.

Mark

Mark

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg1NTEtc2ltdWxhdGUtdGVzdC1jdXJyZW5jeS1zd2l0Y2hlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26395
- Thank you received: 4077
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#210465](#210465) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Simulate (test) currency switcher](/forum/26-product-category-display/878551-simulate-test-currency-switcher#210465 "-- HikaShop version -- : latest business -- Joomla version -- : latest -- PHP version -- : 5.5 -- Browser(s) name and version -- : na -- Error-message(debug-mod must be tuned on) -- : na  Hi,  I've added the geolocation plugin and configured it (ipDBinfo account api-key etc.).  I wonder if there is a possibility to test (simulate) a different country.  I live in Europe (the Netherlands) and would like to check if US and UK-citizens wil see the right currency?  What happens if Australian citizen is visiting the site? will it display the main currency if Australian is not configured?  Thanks in advance.  Mark  Mark")*

Hi,

You can try proxies.
But if you want more details about it ; we won't be able to help, so I recommend you to perform some search.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg1NTEtc2ltdWxhdGUtdGVzdC1jdXJyZW5jeS1zd2l0Y2hlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[hactic](/forum/user/32281-hactic "View hactic's Profile")**
- [![hactic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32281-hactic "View hactic's Profile")
- [ Offline](/forum/user/32281-hactic)

Less More

- Posts: 35
- Thank you received: 3
-
- [](https://shop.smartgart.com)
-

11 years 2 months ago -  11 years 2 months ago [\#213483](#213483) by [hactic](/forum/user/32281-hactic "View hactic's Profile")  Replied by *[hactic](/forum/user/32281-hactic "View hactic's Profile")* on topic *[Simulate (test) currency switcher](/forum/26-product-category-display/878551-simulate-test-currency-switcher#213483 "-- HikaShop version -- : latest business -- Joomla version -- : latest -- PHP version -- : 5.5 -- Browser(s) name and version -- : na -- Error-message(debug-mod must be tuned on) -- : na  Hi,  I've added the geolocation plugin and configured it (ipDBinfo account api-key etc.).  I wonder if there is a possibility to test (simulate) a different country.  I live in Europe (the Netherlands) and would like to check if US and UK-citizens wil see the right currency?  What happens if Australian citizen is visiting the site? will it display the main currency if Australian is not configured?  Thanks in advance.  Mark  Mark")*

Hi, I have language switcher (flags) and currency switcher active. - So far, so good. But:
1. For the geolocation plugin, is it possible to output the detected/derived value (the country) in a module?
Best would be to then also allow for manual override of the country (of an anonymous site visitor).
2. On the checkout / cart view, I have done a manual extension to explicitly display the tax rate: Code:

$taxes = round($this-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax-$this-&gt;full_total-&gt;prices[0]-&gt;price_value,$this-&gt;currencyHelper-&gt;getRounding($this-&gt;full_total-&gt;prices[0]-&gt;price_currency_id)); $tax = $this-&gt;full_total-&gt;prices[0]-&gt;taxes[0] echo '&lt;br/&gt;&lt;span&gt;inkl. ' . $tax-&gt;tax_namekey . '(' . round($tax-&gt;tax_rate * 100, 1) . '%)&lt;/span&gt;&lt;br/&gt;';

Unfortunately this does not work out of the box for the product / listing_price view, as $taxes and $tax are not defined.
Hints and code snippets welcome on how to drill this up.
Both of these would help to make very explicit to a first-time web user what to expect from the shop (exact pricing, flexibility).
The attached screenshot from etsy shows something similar (just an inspiration).

- [ ![etsy.png](/forum/attachment/26322) ](/forum/attachment/26322 "etsy.png") [ ](/forum/attachment/26322?download=1 "etsy.png")

Last edit: 11 years 2 months ago by [hactic](/forum/user/32281-hactic "View hactic's Profile"). Reason: clarification for code

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg1NTEtc2ltdWxhdGUtdGVzdC1jdXJyZW5jeS1zd2l0Y2hlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

11 years 2 months ago [\#213489](#213489) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Simulate (test) currency switcher](/forum/26-product-category-display/878551-simulate-test-currency-switcher#213489 "-- HikaShop version -- : latest business -- Joomla version -- : latest -- PHP version -- : 5.5 -- Browser(s) name and version -- : na -- Error-message(debug-mod must be tuned on) -- : na  Hi,  I've added the geolocation plugin and configured it (ipDBinfo account api-key etc.).  I wonder if there is a possibility to test (simulate) a different country.  I live in Europe (the Netherlands) and would like to check if US and UK-citizens wil see the right currency?  What happens if Australian citizen is visiting the site? will it display the main currency if Australian is not configured?  Thanks in advance.  Mark  Mark")*

Hi,

1. The zone_id of the current country found by the geolocation plugin is available like that:
$app = JFactory::getApplication();
echo $app-&gt;getUserState(HIKASHOP_COMPONENT.'.zone_id');

So if you want to display the name and/or a dropdown to let the user change it, you would have to develop a small module using that zone_id.

2. You should also have access to that in the listings.
for example, you can use this code to load the price data (with the taxes array in each price) on the listings (view file listing_img_title for example):
&lt;?php var_dump($this-&gt;row-&gt;prices); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzg1NTEtc2ltdWxhdGUtdGVzdC1jdXJyZW5jeS1zd2l0Y2hlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
