Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with coding


malyha1

Recommended Posts

Posted

Hi

 

I have asked this question several times but never received a reply. I need to have two categories, each showing depending on the language. If language A is chosen, I need caregories A to show. When the viewer selects language B, categories B show.

can I do it by haing two categories, one for each language and then subcategories under each language? I know this is the easiest way to do it but how do I code it so that the subcategories under each category show on the left as a list after the language is chosen (with English being the default language ofcourse).

 

Please help. I should have had this site launched a week ago. I really need help. Thanks

Posted

If you want to have seperate categories based on language, you will have to add another flag to each category in the database for language. I would probably try to model if after the language_id systems that are already in place in osCommerce. Then in your SQL queries for the categories, you'll have to do something like this:

select blahblah from blah where categories_language_id = $language_id

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...