yarp Posted June 17, 2004 Share Posted June 17, 2004 Hi, I need to know the language chosen by the user in order to inform my bank's TEP which language to use. Unfortunately I can't see any language information in the checkout process. I thought I could use $languages_id as a global variable in my payment module but I'm a bit lost I must admit. Can anybody help me ? Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 17, 2004 Share Posted June 17, 2004 $languages_id will give you the id number of the language in the languages database table. $language will give you the common name of the language, i.e. "english". Depending on what your bank wants, you may be able to use $language. If that doesn't match, you could add another field to the language table and retrieve the correct value using $languages_id. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
yarp Posted June 18, 2004 Author Share Posted June 18, 2004 Thanks Jim, It works now. I thought each language had a given id. I'm affraid I hard tested the id instead of reading the table, but it works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.