VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: ifs-net on February 03, 2016, 17:12:15 PM

Title: Multilingual VM site category association problem
Post by: ifs-net on February 03, 2016, 17:12:15 PM
Hi,

I am trying to setup a bilingual site but I am not able to associate the categories.
I mean when I am in a category page and when I try to switch language, it is sending me to selected language VM frontpage...
How can I fix it please ?

http://npopi.com/npopi
Title: Re: Multilingual VM site category association problem
Post by: Jörgen on February 03, 2016, 17:26:04 PM
Hello

I think this is how it works. Not very elegant, but how many times do You want to switch language when shopping ?

regards

Jörgen @ Kreativ Fotografi
Title: Re: Multilingual VM site category association problem
Post by: ifs-net on February 03, 2016, 18:29:31 PM
I am not sure that is default process of VM.
It might be a setting issue or a bug..
Title: Re: Multilingual VM site category association problem
Post by: jjk on February 03, 2016, 20:52:29 PM
It should work. First have a look here: http://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html
Might be that you need to set 'Remove URL Language Code' in the Joomla System - Language Filter to "No".
And check if you have one language switcher module for each language.
Title: Re: Multilingual VM site category association problem
Post by: ifs-net on February 03, 2016, 21:11:28 PM
Quote from: jjk on February 03, 2016, 20:52:29 PM
It should work. First have a look here: http://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html
Might be that you need to set 'Remove URL Language Code' in the Joomla System - Language Filter to "No".
And check if you have one language switcher module for each language.

I tried but it is not working
Title: Re: Multilingual VM site category association problem
Post by: jjk on February 04, 2016, 21:08:28 PM
Then please check if you have a homepage for each language. Each homepage should show a flag in the 'Home' column of the menu items list.
Also, make sure all language tags a set to Türkçe (TR) in your Turkish menu and to English (UK) in the other one, meaning you should not have category menu items with the language tag 'All'.

However, I suppose the redirect to the homepage happens because the number of menu items are different in your Turkish and English menu. Each Turkish menu item should have an English counterpart. Otherwise the Joomla language switcher might fail to find the category in the other language and therefore loads the homepage.
Title: Re: Multilingual VM site category association problem
Post by: ifs-net on February 05, 2016, 14:22:48 PM
Quote from: jjk on February 04, 2016, 21:08:28 PM
Then please check if you have a homepage for each language. Each homepage should show a flag in the 'Home' column of the menu items list.
Also, make sure all language tags a set to Türkçe (TR) in your Turkish menu and to English (UK) in the other one, meaning you should not have category menu items with the language tag 'All'.

However, I suppose the redirect to the homepage happens because the number of menu items are different in your Turkish and English menu. Each Turkish menu item should have an English counterpart. Otherwise the Joomla language switcher might fail to find the category in the other language and therefore loads the homepage.

I do not that is the case.
Because I have correct language settings for menu items with 3 main page menu items, 2 of the with flags.
And I have all the categories in 2 languages.

There might be a bug somwhere
Title: Re: Multilingual VM site category association problem
Post by: Ghost on February 05, 2016, 14:38:14 PM
I have asked a similar question before. VM does not support multilanguage associations. You would have to create a menu item of every product, category and manufacturer for every language which is nonsensical. There is also a 3rd party language switcher module that should work http://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm.
Title: Re: Multilingual VM site category association problem
Post by: jjk on February 05, 2016, 16:56:19 PM
Quote from: Ghost on February 05, 2016, 14:38:14 PM
I have asked a similar question before. VM does not support multilanguage associations.

Most shops have a limited number of categories. So in most cases it's easy to configure a Joomla menu with menu items pointing to a VM category in each language.
It works in my shop for several years already. See screenshot below.

But in case of ifs-net, there seems to be a configuration problem. The 'Woman's Wear' categories in Turkish and English show a different url structure:
...//npopi.com/en/woman-wear
...://npopi.com/npopi/bayan-giyim
The latter should look like ...://npopi.com/tr/bayan-giyim
Title: Re: Multilingual VM site category association problem
Post by: GJC Web Design on February 06, 2016, 10:57:55 AM
I have built a working Joomla / VM language switcher here:

https://www.quality-tuning.eu/

it also (if u check the source ) writes the correct  hreflang tags

<link href="https://www.quality-tuning.eu/gb/exhausts" rel="canonical" />
  <link href="/templates/hera_j3_vm3/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link href="https://www.quality-tuning.eu/exhausts" rel="alternate" hreflang="x-default" />
  <link href="https://www.quality-tuning.eu/gr/eksatmiseis" rel="alternate" hreflang="el-GR" />
  <link href="https://www.quality-tuning.eu/de/auspuffanlagen" rel="alternate" hreflang="de-DE" />
  <link href="https://www.quality-tuning.eu/fr/echappements" rel="alternate" hreflang="fr-FR" />
  <link href="https://www.quality-tuning.eu/it/scarichi" rel="alternate" hreflang="it-IT" />
  <link href="https://www.quality-tuning.eu/es/escapes" rel="alternate" hreflang="es-ES" />
  <link href="https://www.quality-tuning.eu/pt/escapes" rel="alternate" hreflang="pt-PT" />
  <link href="https://www.quality-tuning.eu/at/auspuffanlagen" rel="alternate" hreflang="de-AT" />
  <link href="https://www.quality-tuning.eu/ch/auspuffanlagen" rel="alternate" hreflang="de-CH" />
  <link href="https://www.quality-tuning.eu/nl/uitlaten" rel="alternate" hreflang="nl-NL" />
  <link href="https://www.quality-tuning.eu/be/uitlaten" rel="alternate" hreflang="nl-BE" />
  <link href="https://www.quality-tuning.eu/ru/vykhlopnye" rel="alternate" hreflang="ru-RU" />
  <link href="https://www.quality-tuning.eu/us/exhausts" rel="alternate" hreflang="en-US" />
  <link href="https://www.quality-tuning.eu/ca/exhausts" rel="alternate" hreflang="en-CA" />
  <link href="https://www.quality-tuning.eu/au/exhausts" rel="alternate" hreflang="en-AU" />
  <link href="https://www.quality-tuning.eu/ar/escapes" rel="alternate" hreflang="es-AR" />
  <link href="https://www.quality-tuning.eu/mx/escapes" rel="alternate" hreflang="es-MX" />
  <link href="https://www.quality-tuning.eu/br/escapes" rel="alternate" hreflang="pt-BR" />
  <link href="https://www.quality-tuning.eu/in/exhausts" rel="alternate" hreflang="en-IN" />

works at cat and product level.. no menus required

it is at the moment a bit of a "one off" but if there is interest I could commershitpille and make available
Title: Re: Multilingual VM site category association problem
Post by: ifs-net on February 07, 2016, 05:33:46 AM
Yes pls I am interested
Title: Re: Multilingual VM site category association problem
Post by: GJC Web Design on February 07, 2016, 11:37:31 AM
email me on webmaster at gjcwebdesign.com