muirch Posted June 3, 2010 Share Posted June 3, 2010 I need this to develop some payment modules.Usually when initializing Currency(), we pass currency id.I need to initialize the object Currency() knowing only currency ISO code .So, first of all I need to get the currency id by its ISO code. How I can do it? Link to comment Share on other sites More sharing options...
rocky Posted June 3, 2010 Share Posted June 3, 2010 Use the following code: $currency = new Currency(Currency::getIdByIsoCode($iso_code)); Link to comment Share on other sites More sharing options...
muirch Posted June 3, 2010 Author Share Posted June 3, 2010 Thank You. Solved Link to comment Share on other sites More sharing options...
rocky Posted June 3, 2010 Share Posted June 3, 2010 Please edit your first post and add [sOLVED] to the front of the title. 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