Page 1 of 2

Language Menu

Posted: 06 Oct 2016, 22:41
by Metalics
Hi all,
I am trying to improve our website with aimeos when i have time.
I am having problem with language menu. Problem only occurs in detail view. In List view it works perfectly and when i want to display the english version of the current catalog, language menu works correctly.
But in detail view, for example im viewing the product:
"http://www.elementel.com/EN/products-se ... Filtre/12/". When i use the language menu to display the Turkish version of the product, it redirects to another product e.g.:
http://www.elementel.com/TR/ueruenler-h ... Filtre/22/

We are having the probem for a long time. I checked some websites in your showcase using aimeos. For example, http://www.werkhaus.ch/ and http://hamag-maschinenbau.de/. Im not sure if they are aware of, but they have same problem.

Re: Language Menu

Posted: 07 Oct 2016, 11:39
by aimeos
How did you set up the language handling?

Re: Language Menu

Posted: 07 Oct 2016, 19:16
by Metalics
Hello,
My language menu setup is:

DILSEC = HMENU
DILSEC {
special = language
special.value = 0,1
1 = TMENU
1 {
noBlur = 1
NO {
stdWrap.override = DİLİ DEĞİŞTİR ⟶ (TÜRKÇE) || CHANGE THE LANGUAGE ⟶ (ENGLISH)
doNotLinkIt = 1
stdWrap.typolink.parameter.data = page:uid
stdWrap.typolink.additionalParams = &L=0 || &L=1
stdWrap.typolink.addQueryString = 1
stdWrap.typolink.addQueryString.exclude = L,id,cHash,no_cache
stdWrap.typolink.addQueryString.method = GET
stdWrap.typolink.useCacheHash = 1
stdWrap.typolink.no_cache = 0
stdWrap.typolink.title = Türkçe || English
wrapItemAndSub = <li class="language-select Turkish">|</li> |*| <li class="">|</li> |*| <li class="language-select English">|</li>
}
ACT < .NO
ACT = 1
ACT {
wrapItemAndSub = <li class="language-select Turkish linkaktif">|</li> |*| <li class="">|</li> |*| <li class="language-select English linkaktif">|</li>
}
}
}

But i controlled the TypoScript setup:
config.no_cache = 1 solved the problem
Thank you.

Re: Language Menu

Posted: 07 Oct 2016, 20:14
by aimeos
"no_cache=1" is a bad choice because it slows down generating the page very much.
Can you try to set "useCacheHash=0" instead? The chash parameter is a common source of such problems.

Re: Language Menu

Posted: 07 Oct 2016, 21:50
by Metalics
I tried "useCacheHash=0". Its not working. Same problem with that solution.
It is interesting, no problem with catalogue translation but only with product translation. :roll:

Re: Language Menu

Posted: 08 Oct 2016, 14:35
by aimeos
What RealURL version do you use? We have huge problems with with RealURL 2.x, like empty baskets during the checkout process or the checkout confirm plugin is always called together with the checkout standard one, but both only on the second run.

Re: Language Menu

Posted: 08 Oct 2016, 15:10
by Metalics
Typo3 Version: 7.6.11
Aimeos Version: 16.7.2
RealURL Version: 2.1.4

Re: Language Menu

Posted: 08 Oct 2016, 15:26
by aimeos
Did you try to order a second time just after the first order was completed?

Re: Language Menu

Posted: 08 Oct 2016, 22:02
by Metalics
I did not get what you mean exactly?

Re: Language Menu

Posted: 11 Oct 2016, 17:39
by aimeos
Put a product into the basket and order that product until you reach the "thank you" page. With RealURL 2.x enabled, we can't add this or another product again to the now empty basket. If we reload the basket, the added product is gone.