Tintai Posted July 19, 2020 Share Posted July 19, 2020 (edited) Hello, How can I get exchange rate for Euro currency? I have this: $conversion_rate = $currency->getConversionRate(); But don't know how to obtain this value inside .tpl Thanks Tintai Edited July 20, 2020 by Tintai (see edit history) Link to comment Share on other sites More sharing options...
PrestaServicePro Posted July 19, 2020 Share Posted July 19, 2020 Hello, where do you want to show it? Link to comment Share on other sites More sharing options...
Tintai Posted July 19, 2020 Author Share Posted July 19, 2020 In product-prices.tpl Need this for calculate exchange rate inside it. Link to comment Share on other sites More sharing options...
PrestaServicePro Posted July 19, 2020 Share Posted July 19, 2020 (edited) Here are image: 1) Open "controllers > front > ProductController.php". Find "function getTemplateVarProduct" (2nd image) 2) Call it with the name which you added in PHP file (1st image) Edited July 19, 2020 by PrestaServicePro (see edit history) 1 Link to comment Share on other sites More sharing options...
Tintai Posted July 20, 2020 Author Share Posted July 20, 2020 Thanks! That is what I was looking for. 1 Link to comment Share on other sites More sharing options...
PrestaServicePro Posted July 20, 2020 Share Posted July 20, 2020 My pleasure Have a good day, and mark the topic as SOLVED. 1 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