Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[HELP] Search Function


sy1223

Recommended Posts

I have a question about the search function in osCommerce.

How can I modify the source code so that it can support the searching in other languages?(for example, Chinese, etc)

 

Thanks!

Link to comment
Share on other sites

I have a question about the search function in osCommerce.

How can I modify the source code so that it can support the searching in other languages?(for example, Chinese, etc)

 

Thanks!

 

 

you do not need to change the code for that, it already does that.

if your osc language setting is chinese, it does the search in the chinese names and descriptions. if you want all results disregarding language then you need to strip the reference to languages_id in the where clauses.

Treasurer MFC

Link to comment
Share on other sites

you do not need to change the code for that, it already does that.

if your osc language setting is chinese, it does the search in the chinese names and descriptions. if you want all results disregarding language then you need to strip the reference to languages_id in the where clauses.

 

 

But the problem is, when I use the charset default by Osc, it can search chinese but it cannot display chinese words correctly.

 

I have tried to charset in "advanced_search.php" to "iso-8859-1"

I can search the chinese words

But i cannot display the chinese words correctly.

 

How to fix it?

Thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...