News:

Support the VirtueMart project and become a member

Main Menu

Add extra fields to "Ask a question about product" Pop up form

Started by mywam, October 02, 2012, 13:15:03 PM

Previous topic - Next topic

mywam

Dear all,

Please can someone help me to add extra fields in "Ask a question Pop up form" in addition to the already exist fields "Name" and "Email" ? 
I need to add fields as a combo box field and also a calendar field .. can u help me please as soon as possible , Thanks alot.



[attachment cleanup by admin]

K&K media production

The layouts for ask question are in com_virtuemart/views/askquestion
You need some overrides to add new fields.

hmarenco

Hi mywam, have you solved the issue? I have the same need but do not know how to do it.

mywam




K&K media production

you must write a override for the files in

com_virtuemart/views/askquestion/tmpl

in default.php you must add the field

in mail_html_question.php and mail_raw_question.php you must add the output

you need also in this files something like this for the new field

$this->my_field = JRequest::getString ('my_field');

if you have no php/html knowledge, make it as commercial job

mywam

Thanks for your help , Please can u tell me , how to change the link of "ask a question " when i press on it redirects to another component " Fabrik form " ??? thanks .

like this link example in your extensions website :  http://extensions.virtuemart.net/vm-templates/mobile-template-detail

K&K media production

Also with a template override for product details page. There you can change the link.