VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Nicola1008 on May 27, 2017, 13:29:01 PM

Title: Ask question in new page and not in a pop-up
Post by: Nicola1008 on May 27, 2017, 13:29:01 PM
Hi,

I'm here with a new question,  as you can read from the title.

Is there a way to display the "ask questions form"  not in a pop-up but in a new page (as if it were a Joomla article)  and preserve all the CSS and style of the template?

Could you please provide me a step by step solution? Because I am not able to understand all the VirtueMart files and rules.

Thank you so much if you help me!!
Title: Re: Ask question in new page and not in a pop-up
Post by: lausianne on January 30, 2018, 22:18:35 PM
I have the same question. The popup is nice, basically, but will cause much grief: If, while filling in the form. the user accidentally (or intentionally) clicks somewhere outside the popup, the popup disappears and with it all of the text -> ANGER

So I think the form should either be on it's own page, or the popup needs to be secured. Either by saving the text (form prefilled when popup opened again), or have a warning before the popup closes.

Would a more knowledgeable person be kind enough to share his/her thoughts? Thanks!
Title: Re: Ask question in new page and not in a pop-up
Post by: Ghost on January 31, 2018, 08:10:52 AM
You can disable modal closing on overlay click by adding hideOnOverlayClick parameter to Fancybox code in askrecomjs.php sublayout.
Title: Re: Ask question in new page and not in a pop-up
Post by: lausianne on March 27, 2018, 20:14:05 PM
Thanks for the workaround. I still wish it was not modal by default with a way to switch it on for those who like to set up traps for their clients ;-)
Title: Re: Ask question in new page and not in a pop-up
Post by: Studio 42 on March 29, 2018, 01:15:17 AM
YOu have to modify link and PHP form.
If you dont know PHP, it's not simple to modify And Virtuemart do not provide a switcher to disable modal for ask question.