Jump to content

How to echo currency conversation rate in template by currency ID


Recommended Posts

You can get the conversion_rate like this:



The default currency you can get with static function:

public static function getDefaultCurrency()

so call something like: $defaultCurrency = Currency::getDefaultCurrency();



public static function getCurrencies($object = false, $active = 1)
so call something like: $listOfCurrencies = Currency::getCurrencies();
Hope this helps,

Share this post

Link to post
Share on other sites

Not exactly what I wanted-  I wanted to get conversation rate by id of currency. Some thing like conversation_rate("1") , where "1" would be ID of currency. And I want that in product.tpl .

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More