News:

Support the VirtueMart project and become a member

Main Menu

how to assign VM search module in multi lingual site ?

Started by erasme65, January 30, 2014, 16:30:24 PM

Previous topic - Next topic

erasme65

J 2.5.16 / VM 2.2.26d

My Joomla site has two languages, french and english. I'm using the native multilingual option of joomla, not Joomfish...
I've made menu links to all my shop VM categories, all categories and products are translated in each language. It's Ok.  ;)

But I dont't know how to use the VM search module ! When I use it, the result page doesn't show any menu, nor any translated module !
So I've tried to build a new menu link towards the VM search module but it doesn't appear in the choice list. The only choice I have is to link with the native search module of joomla. :(

Anyone has configured the VM search module with multiple languages ?

thanks

jjk

You need one copy of the search module assigned to the french language and one copy assigned to the english language and publish both into a module position that exists in your template.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

erasme65

Thanks for your help. :)
Yes, that's what I have done... But the result is the same.
You can play with it here, this is a working site -> http://www.negoce-plus-telephonie.fr/nouveau_site with the word "m910" for example... the input text is "search" in english and "rechercher" en français.
And when you press Enter the menu line disappear  :-[

jjk

I don't see immediate errors on your website. I would suggest to check a few things:

Temporarily try one of the Joomla default templates and check if the problems exists there, too.
I can see that your page loads two menu javascripts, one appears to be an old suckerfish menu by JoomlaArt which might not be compatible with Joomla 2.5. It't name is probably ja-sosdmenu.  Did this come with your template? And the other one is the Joomla standard menu. Does the problem still exist, if you disable the JA menu?
Is that JA menu assigned to all pages in the menu module configuration?

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

erasme65

Thanks jjk,

That's what I've done, you're right, it's a good idea ( http://www.negoce-plus-telephonie.fr/nouveau_site ). So I've changer my template for the beez5 one.
I've placed my modules and menus, and the VM search. When I search for something, the menu for the language disappears ans this is the default one - for all languages - which is shown.
So I understand that the result search loose the context language. But the "&lang=" is still remaining in the URL...

May I build a special ghost menu linked to the VM result search ? I don't know where to find it...

jjk

If you want to see an example of how it normally works, have a look at the website introduced here:
http://forum.virtuemart.net/index.php?topic=110005.msg368594#msg368594

On the left side there is the standard VM search module, one for each language. Note, that the menu does not disappear when you execute a search. Maybe you have configured your search modules to show only on the frontpage instead of selecting all (or most) pages.

There is also an 'Extended Search' in the top menu (one for each language). That menu link is assigned to the Joomla 'Search Form or Search Results' menu item type and is assisted by the 'VM - Search, Virtuemart Product' plugin, which comes with VM2 and adds a 'Products' to the Joomla search form. This type of search comes up with a link list, similar to a search engine.

Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

erasme65

This is a well-formed site... but it seems there are 2 sites https:(link modified by moderator)de/ and https: link modified by moderator)/en 'cause the gallery are not the same...

I build a new site from scratch. I think that's the best. I'll tell you about my adventure  ;D

Many thanks for your help and your time !

jjk

Quote from: erasme65 on January 31, 2014, 19:16:33 PM
This is a well-formed site... but it seems there are 2 sites
No, it is a single site with German as the primary language and Englisch as the translation. On the frontpage there is one category where the category thumbnail in in German is different from the category thumbnail in English. VirtueMart allows to do that. Some views might display products in a different sort order because of the alphabetical sorting in German/English.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations