Price in three currency

  • Posts: 2293
  • Thank you received: 315
6 years 8 months ago #296244

-- HikaShop version -- : 3.5.1

I need to display price in three currencys (roubles, dollars and euros).
If I choose to show main price in dollar it is ok converted to roubles and it is ok.
But if I add price in euro it doesn't even show!


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Attachments:

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

  • Posts: 83589
  • Thank you received: 13528
  • MODERATOR
6 years 8 months ago #296250

Hi,

That's because HikaShop only displays the prices in the current currency.
And if there is no price in the current currency, then it tries to load the price from another currency and converts it to display it in the current currency. And in such cases, it's possible to also display the price from the original currency, but that's it.
There is no option to display all the prices regardless of the currency.

If you enable the HikaShop currency switcher module via the Joomla modules manager, then the customers can change themselves the current currency (or you can also configure the geolocation plugin to auto select the current currency: www.hikashop.com/support/documentation/7...hop-geolocation.html ) and so the customers will also be able to see the prices in euros in that case.

If you really want to display all the prices of all the currencies on the product page, then it would require some php modifications to the view file displaying the product page layout:
www.hikashop.com/support/documentation/1...-display.html#layout

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

  • Posts: 2293
  • Thank you received: 315
6 years 8 months ago #296272

Hi Nicolas!
Glad to here from you!

I know very well how to do customization.
If you help with exact method of currency conversion I will be very happy. :)

I think that I need to override listing_price.php but as I can see - the currency conversion at this moment is already done.

So I don't know where is the currency conversion done


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
Last edit: 6 years 8 months ago by progreccor.

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

  • Posts: 2293
  • Thank you received: 315
6 years 8 months ago #296281

I have found appropriate method:

$euros=$this->currencyHelper->convertUniquePrice($price->price_orig_value,2,1);

This is solved the problem.


Я не явлюсь официальной службой поддержки!
Я здесь добровольно!

Хочешь получить купон на скидку Hikashop? Спроси меня как!
The following user(s) said Thank You: Jerome

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

Time to create page: 0.071 seconds
Powered by Kunena Forum