GeoPlugin showing incorrect price

  • Posts: 37
  • Thank you received: 0
9 years 6 months ago #231903

-- HikaShop version -- : HikaShop Business 2.3.5
-- Joomla version -- : 3.4.8
-- PHP version -- : 5
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : Geolocation plugin showing incorrect value on product detail page

Hi ,

We are using default Geolocation plugin which is available on HikaShop Business edition to change the currency automatically based on country. We have added different prices for different currencies for a product.

Now the issue is, Suppose I have a product name "Test" and I have set Price as follows. (EURO - 25, GBP - 40, INR - 250) and have also enabled the corresponding currencies. Now, when I am viewing the product from Indian IP, then the listing page shows Price (250 INR) which is correct. But, when I click on the product and go the product detail page then the default currency price is showing up (EURO - 25).

We don't have made any modifications on the view files and the Geoplugin is also configured properly using the API key. Our requirement is, set prices in multiple currencies and display the product price automatically based on GEO location.

For now, we have disabled the test product for which we were testing GeoPlugin. Please suggest anything to get this working.

Please Log in or Create an account to join the conversation.

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #231914

Hi,

I tried on my end with an Indian web proxy:
take.ms/Z9RmL
I got the price in INR and GBP, not in the EUR.
So the geolocation system is working since the current curreny is changed.
It seems that the problem can come from two things:
1. In the HikaShop configuration, you're activated the setting "Show price in original currency". Make sure that it is turned off.
2. There is a view override made on your end or by your template which force the display of the price in the other currency. Switch temporarily to the Joomla default template is order to check you have the problem with it or not. If not, the it's likely that it comes from a view override. You can rename the folder templates/YOUR_TEMPLATE/html/com_hikashop/product via FTP to deactivate the view overrides for the products in order to confirm the problem with your template.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
9 years 6 months ago #231934

Hi Nicolas,

Thanks for the update. Actually, if we disable the option then the problem still persists. We have set a price for ("Product name - LILI TUNIC" = 9214 INR). Even after disabling the option, listing page shows correct price = 9214 INR, but product detail page show (3 739,00 INR) which is calculating the price by converting the default currency.

We have also checked it by renaming the view files, but it still does not work

Please Log in or Create an account to join the conversation.

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #231939

Hi,

Could you update to the latest version of HikaShop ? The 2.3.5 version is quite an old one and not supposed to work properly with the latest version of Joomla. So it might help. If you still have the problem after that, please provide a backend access to the website so that we can check the settings: www.hikashop.com/support/contact-us.html

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
9 years 6 months ago #232631

Sent the admin details on private message

Please Log in or Create an account to join the conversation.

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 6 months ago #232692

Hi,

So I've checked your settings and the behavior of HikaShop is totally normal.
On listings the prices of the main product are used if specified (and that's the case).
But on the product page, if the product has variants (and it has), and that the variants have prices (and they all do), it's the prices of the variants which will be used and not the prices of the main product.
And if you look at the prices of the variants, you only specified the prices in EUR and GBP, not the price in INR.
So the system has to calculate the price in INR from the GBP price for the variants.

I've entered the price in GBP for one variant of your test product:
take.ms/b1RZS
And then, if I select that variant on the product page, the price in INR displays just fine:
take.ms/a2C9P
So either set the prices in INR in the variants, or don't set any price in the variants and it will work like you want.

The following user(s) said Thank You: girish.tiwaricb

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
9 years 6 months ago #232702

Thank you so much Nicolas. Actually we haven't noticed variants section. We were using Hikashop 2.3.5 version and this version don't have a clear section for Product variants as the latest version has a different tab for variants.

Many thanks Nicolas.

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum