[Solved] Where should I go for? Here or Falang?

  • Posts: 56
  • Thank you received: 0
12 years 7 months ago #46225

I had installed the content element from Falang and all page browsing works fine. My problem is on the Search function, it only works for English string but always find nothing for the second language I add. Any advise?

Thanks

Last edit: 12 years 7 months ago by savio.

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 7 months ago #46236

We found that there was indeed a problem with the translations in search.
Please use that search plugin and it should work.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 56
  • Thank you received: 0
12 years 7 months ago #46248

You are truely amazing. It is the first time I get so many solutions from a single forum. Really really thank you.


Just report a very minor finding, no practically issue.
When I search an English string, I get results for both languages. i.e. I get the search result and can switch its language as usual.
If I search a string in the 2nd language, I will see nothing when switch to English.
(I mean on the search result page)

Last edit: 12 years 7 months ago by savio.

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 7 months ago #46315

I didn't understand your problem. Could give more information on how to reproduce it ?

Please Log in or Create an account to join the conversation.

  • Posts: 56
  • Thank you received: 0
12 years 7 months ago #46332

Thank you for searching excellence. Here is the description of the situation.

No matter the visitor is under page of which language, when an English string (e.g. part of a product name) is entered into the search field, the search result is always displayed. And for the "search result page" itself, visitor can press the language switch button to change the language. However, ...

If the string being entered into the search field is in the 2nd language, the "search reault page" will display result only when the language switch button is switched to the 2nd language. In other words, Search result is found, but being displayed or not is decided by something else.


If the visitor always stick with a single language, this is not an issue; though not ideal.
BTW, I seeked help from both of you and falang on day one. And I received an email from falang yesterday that they are also working on a plugin and will release it soon. so ;)

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 7 months ago #46344

Regarding your case, that's actually normal. The english text is in HikaShop and considered as "main" so the plugin always searches in it.
On top of that, the plugin searches in the translations of the current language.
If you remove the line:
$filters2[] = 'b.language_id='.$lg;

from the plugin file, it will remove the limitation on translations and thus it will always search in all the translations.

On the other end, if you want to only have results in the current language, you could change the line:
if($limit){

to:
if($limit && !$count){

in the plugin file.


Our search plugin was already supporting translations from JoomFish, so it was logical to support it for Falang too.

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
12 years 5 months ago #52207

Excuse me, please, would you help me with this plugin?
I installed it, but I don't know how to set up it correctly.

Last edit: 12 years 5 months ago by chaban.

Please Log in or Create an account to join the conversation.

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #52282

You don't need that plugin. Just use the latest version of HikaShop (1.5.8) and it will be included already.
There is not much to setup. Once it's installed, publish it and voilà, it will be integrated with the joomla search module automatically.

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum