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

False language in popup with SEF in J! 3.4.0 and VM 3.0.6

Started by RobertG, March 03, 2015, 09:40:10 AM

Previous topic - Next topic

Studio 42

RoberG
YOu are right, the setting is correct, but the link does not get the right language.
DO you have try to remove in joomla, auto set language from browser(or something so) ?
I think if the language si not set then this is set from browser.
I think at end enabling the sitelang hook in config must get the good result.

A simple test i have made:
entering the site :
i was redirected to : http://multi2.par-robertg.fr/fr/
chaged to english : http://multi2.par-robertg.fr/en/
reentered in adress bar  http://multi2.par-robertg.fr/ and got redirect to http://multi2.par-robertg.fr/fr/
but this is not logic, nothing are set in session or cookie to redirect to right language, this mean if no language is set then joomla always set the same language and don't look for the last visited page language.

A solution is to set full root url to virtuemart, as i explained some post before, to get right language root. But currently a hook is needed in Joomla or perhaps, disabling the autoset language from browser.

Another solution is to add a system plugin cheking the session, to find and set the right language, if this is missing. I think this can solve the problem for Joomla bad language switching.

RobertG

Désolé de le redire en français, mais le problème n'est pas au niveau de Virtuemart, mais à celui de Joomla! : tout fonctionne parfaitement sur le site en 3.3.6 (maintenant avec VM 3.0.8) et mal, à cause des modifications qui ont été faites dans la gestion multilingue de Joomla! 3.4.x, sur le site multi2, lui aussi maintenant en VM 3.0.8.

Studio 42

I understand ReobergG, this come from Joomla, i only try to get you a solution to use Joomla 3.4+

prokops

Hi guys!

As I see Joomla 3.4.1 and Virtuemart 3.0.8 still have this problem present, so my solution for this is to disable the modal in VM config and wait for the Joomla team to apply a proper fix.

Did any of you solve this by hacking core, 3rd party plugins or similar ?

Cheers,
prokop

Studio 42

Quote from: prokops on April 22, 2015, 10:08:08 AM
Hi guys!

As I see Joomla 3.4.1 and Virtuemart 3.0.8 still have this problem present, so my solution for this is to disable the modal in VM config and wait for the Joomla team to apply a proper fix.

Did any of you solve this by hacking core, 3rd party plugins or similar ?

Cheers,
prokop

The problem is that perhaps this get fixed or not. I don't have lust ot search a temp solution for nothing.
Perhpas this get solved in 2 weeks or in 6 month with another change in virtuemart or Joomla.
One solution is to sef the links, or get the home of joomla per language, this can solve this problem and perhaps other in multilanguage shops. But investigate 1 hour (and perhaps more) for one person only and next Joomla or vm release fix this, is a time spend.
Sorry for the answer. But most of time, so hooks are ignored by max.

Patrick

RobertG

Virtuemart 3.0.9 just tested: no change! :(
Pop-up language remains the main language and change actual language when we click on "continue shopping" or "view cart", not the one that was used in the shop.

lindapowers

#36
Im having this same issue. Had not noticed since we use a 3rd party minicart module (no popup) but in the responsive view with the default vm modal popup we get always default shop language (even being in another language) and we get redirected to default language cart.

vm 3.0.8  j 3.4.1


Edit: Did you solve it Robert cause I checked your link and for me it worked in your site with all the languages.

Milbo

Quote from: Studio 42 on April 22, 2015, 21:36:29 PM
Sorry for the answer. But most of time, so hooks are ignored by max.
Cause they are like your language.

The problem with the new router is that if there is no itemId given, it uses the homepage Itemid as fallback.
The popup uses the last used itemId, which works well in j2.5, but not in j3.4.1. The final solution is to write an own vm router plugin. and Patrik mentions the right thing, but blames the wrong person.
From my point of view, it is a joomla error and so it is maybe fixed. On the other hand, it is very likely that they say "It is the new behaviour" and we have to adjust our code or write a router.

If someone has an idea to get it running changing our code, yeh go ahead. But I fear the only solution is to have an own router plugin.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Studio 42

Hi,
Quote from: Milbo on May 27, 2015, 11:38:08 AM
Quote from: Studio 42 on April 22, 2015, 21:36:29 PM
Sorry for the answer. But most of time, so hooks are ignored by max.
Cause they are like your language.

The problem with the new router is that if there is no itemId given, it uses the homepage Itemid as fallback.
The popup uses the last used itemId, which works well in j2.5, but not in j3.4.1. The final solution is to write an own vm router plugin. and Patrik mentions the right thing, but blames the wrong person.
From my point of view, it is a joomla error and so it is maybe fixed. On the other hand, it is very likely that they say "It is the new behaviour" and we have to adjust our code or write a router.

If someone has an idea to get it running changing our code, yeh go ahead. But I fear the only solution is to have an own router plugin.

Your  last response was, i do a new router. But i don't know the current roadmap. If you change all in 1 month, why fixing this bug, doing some test  ?
I don't think i blames the wrong person, but i reported the current state on the router evolution.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/


Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

RobertG

I just installed this new version on previous test site "multi2", but it don't solve this problem.

Please see http://multi2.par-robertg.fr where french is the default language and popup strings remain in french when you are on german, english, italian or spanish shop.

For information, http://multi.par-robertg.fr is not a 3.4 but a 3.3.6 website where there are no problems with multilanguage.

RobertG

New info: I installed Virtuemart 3.0.9.4 on a blank multilingual site 3.4.1 and on this site, language in popup is correct, so I think it was a problem on my "multi2" test website.

Thanks for this fix!
Robert

Milbo

I think the problem here is j3.3.6, but should also work on j2.5
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/