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

'ask question about' modal on multi language site

Started by mizu, October 20, 2021, 10:12:55 AM

Previous topic - Next topic

mizu

My site is multi language.
VM 3.8.8
J 3.10.2

The 'ask question about product' modal works only in default language.
When switching to second language the form opens in a new window.

Any idea how to solve this?

Thanks for reading.

Jörgen

In my site this is multilanguage.
Do you have template overrides ?
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

mizu

Thanks for your reply.
Not sure what you mean, could you elaborate please?

I have custom layouts and CSS overrides.
But those do not (to my knowledge) affect this modal function.

Jörgen

You do not give much clues here, do you use custom joomla templates ?

If You do then You have to check:
[url]templates/your template/html/com_virtuemart/askquestion


Thoose files are responsible for the form.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

mizu

I checked.
This file hasn't been touched. It remains original at the path you mentioned. No override for this one.

I also disabled temporarily all VM overrides to see if it makes a difference. No, it does not.

Jörgen

Then it is up to you and look into the files, my override files use langauge keys for the form. What does your form use? What is not translated ? What is translated ?
Do the language keys exist etc.

This is invisible to us, but you can look this up.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

mizu

Jörgen,

thanks for your help.
My issue is that on default language the modal opens nicely.
But after switching the language it does not. It opens a new window, showing the form. All translated.

I'm not the super tech guy. I have problems to understand how this multi lang actually works.
I find the code to show the button in productdetails->default.php. (but no reference to 'open as modal' or such)

I'll try with beez template next, perhaps I just have another template issue, and get back with results.

mizu

works with beez!

OK, problem is on my side.

Again, thanks for your help Jörgen.

Jörgen

That is what I thought, happy hunting.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.