VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: RIL on January 29, 2018, 11:29:18 AM

Title: Menu > Product details shows title and description in default language
Post by: RIL on January 29, 2018, 11:29:18 AM
Hi,
I have searched for this topic but haven't been able to find an answer yet.

I have a multiple language website where Danish is the default language and English is the second. Everything works with language switcher except when I use the menu item "Product details layout".

The problem occurs in frontend in product details view when I switch from Danish to English. It switches to an English view of the same product but the product title and description are in Danish and everything else - userdefined fields, menus, constants - are in English.

Any ideas how I can fix this?

https://retrokeramik.dk/punchbowl00002 (https://retrokeramik.dk/punchbowl00002)

Thanks Rita

Joomla version 3.8.3 and virtuemart version 3.2.12
Title: Re: Menu > Product details shows title and description in default language
Post by: Jörgen on January 29, 2018, 14:07:23 PM
Are You sure You have created this content in Danish also ? Mål: is also in Danish, together with image descriptions.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Menu > Product details shows title and description in default language
Post by: RIL on January 29, 2018, 14:14:39 PM
Yes, the product has both Danish and English translations.

Here is an example of a product without product details layout where translations are fine:
https://retrokeramik.dk/keramik/sk%C3%A5le/laagkrukke-fra-1966erne-432-3162-berte-jessen-aluminia-detail
(https://retrokeramik.dk/keramik/sk%C3%A5le/laagkrukke-fra-1966erne-432-3162-berte-jessen-aluminia-detail)
https://retrokeramik.dk/en/keramik/bowl/laagkrukke-fra-1966erne-432-3162-berte-jessen-aluminia-detail (https://retrokeramik.dk/en/keramik/bowl/laagkrukke-fra-1966erne-432-3162-berte-jessen-aluminia-detail)

So I think it has something to do with the product details layout.

Rita
Title: Re: Menu > Product details shows title and description in default language
Post by: Jörgen on January 29, 2018, 14:29:14 PM
How do you come to these pages, I can not switch language between these two? Come Always to default starting page.

This is another Product, does the other Product work with these views ?
Maybe it has something to do with danish characters in the alias / Product name ?
regards

Jörgen @ Kreativ Fotografi
Title: Re: Menu > Product details shows title and description in default language
Post by: RIL on January 29, 2018, 14:40:58 PM
I have now added this product to the menu with the product details layout and the same error occurs.

https://retrokeramik.dk/en/teneralidbowl00001 (https://retrokeramik.dk/en/teneralidbowl00001)

I have added the SKU number as URL to avoid special characters in order to test this as well.
Title: Re: Menu > Product details shows title and description in default language
Post by: Ventsi Genchev on February 01, 2018, 17:43:10 PM
Hello Rita,

Did you fix the problem?
Title: Re: Menu > Product details shows title and description in default language
Post by: RIL on February 01, 2018, 19:45:28 PM
Hi Venci,
No, the problem is not fixed. Do you have any suggestions?

Thanks for your help
Rita
Title: Re: Menu > Product details shows title and description in default language
Post by: Ventsi Genchev on February 02, 2018, 05:35:02 AM
Yes, I have a suggestion.  :)

Search anywhere in the template (/templates/theme643/html/) as well as in the modules and plugins that the template has added the following:
onAfterInitialise
and replace it with:
onAfterRoute

Test one by one and see if the problem will be solved. I suppose that some plug-in creates this problem.