Artx Posted September 6, 2013 Share Posted September 6, 2013 How to echo currency conversation rate in front office template by currency ID, like in back office: Payments -> Currencies -> "Conversation coefficient" ? Link to comment Share on other sites More sharing options...
PascalVG Posted September 6, 2013 Share Posted September 6, 2013 You can get the conversion_rate like this: $order->conversion_rate 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, pascal Link to comment Share on other sites More sharing options...
Artx Posted September 6, 2013 Author Share Posted September 6, 2013 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 . Link to comment Share on other sites More sharing options...
Artx Posted September 6, 2013 Author Share Posted September 6, 2013 OK, got it Link to comment Share on other sites More sharing options...
PascalVG Posted September 6, 2013 Share Posted September 6, 2013 Hi Artz, (Sorry, mixed up $order->conversion_rate with $currency->conversion_rate) For other forum members who might need it, can you share your final solution? Thanks, pascal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now