Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I get the language used ?


yarp

Recommended Posts

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 ?

Link to comment
Share on other sites

$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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...