VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: mizu on October 20, 2021, 10:12:55 AM

Title: 'ask question about' modal on multi language site
Post by: mizu on October 20, 2021, 10:12:55 AM
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.
Title: Re: 'ask question about' modal on multi language site
Post by: Jörgen on October 20, 2021, 10:23:04 AM
In my site this is multilanguage.
Do you have template overrides ?
Jörgen @ Kreativ Fotografi
Title: Re: 'ask question about' modal on multi language site
Post by: mizu on October 20, 2021, 10:43:30 AM
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.
Title: Re: 'ask question about' modal on multi language site
Post by: Jörgen on October 20, 2021, 11:10:22 AM
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
Title: Re: 'ask question about' modal on multi language site
Post by: mizu on October 20, 2021, 11:52:51 AM
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.
Title: Re: 'ask question about' modal on multi language site
Post by: Jörgen on October 20, 2021, 12:19:02 PM
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
Title: Re: 'ask question about' modal on multi language site
Post by: mizu on October 20, 2021, 12:53:54 PM
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.
Title: Re: 'ask question about' modal on multi language site
Post by: mizu on October 20, 2021, 13:06:32 PM
works with beez!

OK, problem is on my side.

Again, thanks for your help Jörgen.
Title: Re: 'ask question about' modal on multi language site
Post by: Jörgen on October 20, 2021, 14:29:39 PM
That is what I thought, happy hunting.

Jörgen @ Kreativ Fotografi