News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Multilingual VM site category association problem

Started by ifs-net, February 03, 2016, 17:12:15 PM

Previous topic - Next topic

ifs-net

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

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ifs-net

I am not sure that is default process of VM.
It might be a setting issue or a bug..

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

ifs-net

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

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

ifs-net

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

Ghost

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.

jjk

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
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ifs-net


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation