VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: kemal on February 28, 2017, 15:27:48 PM

Title: Category URL redirects wrong language on multilingual site
Post by: kemal on February 28, 2017, 15:27:48 PM
Hi,

I have 4 languages installed on my joomla environment along with virtuemart.
I have defined seo urls for each language on virtuemart for both products and categories.

It displays correct translation but wrong url.

When i display product in Turkish (or any other language for that matter) there is no problem on translations. However when i click on category urls to display product it redirects to english url. This happens on category module and shopfront also.

You can check url in order to understand the matter.
https://www.birpet.net/tr/urunler/defne-jar-5000-tr-detail

Above url is for a Turkish url for a product. As you can see there is a module on right hand side which displays categories (Module name: Ürün Grupları)
When you click an url from that module (by the way trasnlation is correct) it redirect to English category page and everything becomes english. And this is my problem

This is first time i use Virtuemart, i have managed to set up everything easly but i am sure i am missing something about it.
Your precious help will be much appreciated.

Info about environment;
VirtueMart 3.0.18
Joomla 3.6.5
PHP 7.0.10
Flex Theme

(each language has it`s on theme)
Title: Re: Category URL redirects wrong language on multilingual site
Post by: jenkinhill on February 28, 2017, 15:34:44 PM
http://forum.virtuemart.net/index.php?topic=79799.0
Title: Re: Category URL redirects wrong language on multilingual site
Post by: kemal on February 28, 2017, 15:38:06 PM
Thank you for reminding.
Info about environment;
VirtueMart 3.0.18
Joomla 3.6.5
PHP 7.0.10
Flex Theme
Title: Re: Category URL redirects wrong language on multilingual site
Post by: kemal on February 28, 2017, 15:47:08 PM
I have just figured that this is a template related issue. I will be waiting for any help though.
Title: Re: Category URL redirects wrong language on multilingual site
Post by: kemal on March 01, 2017, 10:32:27 AM
Any help or suggestion? Not even a single one? Seriously?
Title: Re: Category URL redirects wrong language on multilingual site
Post by: jenkinhill on March 01, 2017, 12:23:08 PM
http://forum.virtuemart.net/index.php?topic=104795.0
Title: Re: Category URL redirects wrong language on multilingual site
Post by: kemal on March 01, 2017, 13:09:43 PM
Quote from: jenkinhill on March 01, 2017, 12:23:08 PM
http://forum.virtuemart.net/index.php?topic=104795.0

None of them applies to my question. Thank you though i do not get lonely because of your your messages. They do not make any statements or sometimes i think of you as a reply bot, it is fun to have replies.
Title: Re: Category URL redirects wrong language on multilingual site
Post by: stawebnice on March 01, 2017, 13:37:16 PM
Do you use JoomSEF or another SEF component?
Title: Re: Category URL redirects wrong language on multilingual site
Post by: jenkinhill on March 01, 2017, 13:49:44 PM
Quote from: kemal on March 01, 2017, 13:09:43 PM
None of them applies to my question.

You have not allowed enough time for people to reply. Someone who maybe knows the answer to your might only visit the forum once every few days or so.....  You said that you have "figured that this is a template related issue" but not said how you made that conclusion.
Title: Re: Category URL redirects wrong language on multilingual site
Post by: kemal on March 01, 2017, 14:18:47 PM
Quote from: stawebnice on March 01, 2017, 13:37:16 PM
Do you use JoomSEF or another SEF component?

I use Joomla SEF and Virtuemart Seo option enabled, there is no other SEF component.
Title: Re: Category URL redirects wrong language on multilingual site
Post by: fotonio on March 13, 2017, 17:03:29 PM
In order to be able to switch from product category to its equivalent in another languages you have to create menus (hidden or visible) for each category and associate with other languages. For example for 4 languages you have to create 4 menus for each product category.
This will work for your category-to-category language switch but not for product-to-product because the virtuemart native possibilities does not support it.
If you want to have product-to-product labguage switching, you have to use a third party extension.
Title: Re: Category URL redirects wrong language on multilingual site
Post by: agps on March 18, 2018, 23:14:25 PM
Quote from: kemal on February 28, 2017, 15:27:48 PM
Hi,

I have 4 languages installed on my joomla environment along with virtuemart.
I have defined seo urls for each language on virtuemart for both products and categories.

It displays correct translation but wrong url.

When i display product in Turkish (or any other language for that matter) there is no problem on translations. However when i click on category urls to display product it redirects to english url. This happens on category module and shopfront also.

You can check url in order to understand the matter.
https://www.birpet.net/tr/urunler/defne-jar-5000-tr-detail

Above url is for a Turkish url for a product. As you can see there is a module on right hand side which displays categories (Module name: Ürün Grupları)
When you click an url from that module (by the way trasnlation is correct) it redirect to English category page and everything becomes english. And this is my problem

This is first time i use Virtuemart, i have managed to set up everything easly but i am sure i am missing something about it.
Your precious help will be much appreciated.

Info about environment;
VirtueMart 3.0.18
Joomla 3.6.5
PHP 7.0.10
Flex Theme

(each language has it`s on theme)

Hi,

I have the same problem. Have you find any solution?
Title: Re: Category URL redirects wrong language on multilingual site
Post by: Studio 42 on March 19, 2018, 00:07:18 AM
You can use my language switcher https://shop.st42.fr/en/categories-tools/multi-language-for-virtuemart.htm.
Note that it do the job without needing to assign any Joomla menu items links except Virtuemart home or root category and it does not work with 3rd party SEF
Title: Re: Category URL redirects wrong language on multilingual site
Post by: Milbo on March 19, 2018, 12:40:53 PM
Quote from: fotonio on March 13, 2017, 17:03:29 PM
This will work for your category-to-category language switch but not for product-to-product because the virtuemart native possibilities does not support it.

Uhm, the language switcher provided with the membership version provides that!