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

#   Currency conversion

##

- **[ghiamar](/forum/user/30361-ghiamar "View ghiamar's Profile")**
- [![ghiamar's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30361.png)](/forum/user/30361-ghiamar "View ghiamar's Profile") Topic Author
- [ Offline](/forum/user/30361-ghiamar)

Less More

- Posts: 14
- Thank you received: 2
-
-
-
- [](http://www.mgscreativa.com/en/online-store)
-

12 years 10 months ago [\#137368](#137368) by [ghiamar](/forum/user/30361-ghiamar "View ghiamar's Profile")  *[Currency conversion](/forum/29-payment-methods/864480-currency-conversion#137368 "Hi, does hikashop have some currency conversion functions?  I need to convert from currency ID to another currency ID.  Thanks in advise!")* was created by *[ghiamar](/forum/user/30361-ghiamar "View ghiamar's Profile")*

Hi, does hikashop have some currency conversion functions?

I need to convert from currency ID to another currency ID.

Thanks in advise!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjQ0ODAtY3VycmVuY3ktY29udmVyc2lvbj90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 10 months ago [\#137371](#137371) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Currency conversion](/forum/29-payment-methods/864480-currency-conversion#137371 "Hi, does hikashop have some currency conversion functions?  I need to convert from currency ID to another currency ID.  Thanks in advise!")*

Hi,

[ www.hikashop.com/support/integrated-docu...ency-form.html#infos](http://www.hikashop.com/support/integrated-documentation/10-hikashop/13-hikashop-currency-form.html#infos)

> Rate : The rate of the currency based on the main currency set in the configuration page. The main currency will always have a rate of 1. As you can see, on this screenshot, the main currency is Euro.

Regards,

---

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

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

- **[ghiamar](/forum/user/30361-ghiamar "View ghiamar's Profile")**
- [![ghiamar's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30361.png)](/forum/user/30361-ghiamar "View ghiamar's Profile") Topic Author
- [ Offline](/forum/user/30361-ghiamar)

Less More

- Posts: 14
- Thank you received: 2
-
-
-
- [](http://www.mgscreativa.com/en/online-store)
-

12 years 10 months ago [\#137385](#137385) by [ghiamar](/forum/user/30361-ghiamar "View ghiamar's Profile")  Replied by *[ghiamar](/forum/user/30361-ghiamar "View ghiamar's Profile")* on topic *[Currency conversion](/forum/29-payment-methods/864480-currency-conversion#137385 "Hi, does hikashop have some currency conversion functions?  I need to convert from currency ID to another currency ID.  Thanks in advise!")*

Sorry, I didn't express myself well...I need to convert currencyes to an payment accepted currency...

Just done with this little snippet
Code:

$app = JFactory::getApplication(); $currencyClass = hikashop_get('class.currency'); $paymentCurrencyId = $currencyClass-&gt;get($this-&gt;payment_params-&gt;payment_currency)-&gt;currency_id; $orderCurrencyId = (int)$app-&gt;getUserState(HIKASHOP_COMPONENT.'.currency_id', $currencyClass-&gt;mainCurrency()); $totalInPaymentCurrency = $currencyClass-&gt;convertUniquePrice(round($order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax, (int)$this-&gt;currency-&gt;currency_locale['int_frac_digits']), $orderCurrencyId, $paymentCurrencyId);

Best regards!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjQ0ODAtY3VycmVuY3ktY29udmVyc2lvbj90bXBsPW1hcmtkb3du) 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.050 seconds

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