Author Topic: Add extra fields to "Ask a question about product" Pop up form  (Read 5344 times)

mywam

  • Beginner
  • *
  • Posts: 6
    • myWAm for Web&Tech Services
Add extra fields to "Ask a question about product" Pop up form
« on: October 02, 2012, 13:15:03 pm »
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

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3
Re: Add extra fields to "Ask a question about product" Pop up form
« Reply #1 on: October 06, 2012, 00:34:41 am »
The layouts for ask question are in com_virtuemart/views/askquestion
You need some overrides to add new fields.

hmarenco

  • Beginner
  • *
  • Posts: 2
Re: Add extra fields to "Ask a question about product" Pop up form
« Reply #2 on: February 07, 2013, 03:40:47 am »
Hi mywam, have you solved the issue? I have the same need but do not know how to do it.

mywam

  • Beginner
  • *
  • Posts: 6
    • myWAm for Web&Tech Services
Re: Add extra fields to "Ask a question about product" Pop up form
« Reply #3 on: April 16, 2013, 16:49:08 pm »
How i do overrides to add extra fields please ??????????

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3

mywam

  • Beginner
  • *
  • Posts: 6
    • myWAm for Web&Tech Services

K&K media production

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3
Re: Add extra fields to "Ask a question about product" Pop up form
« Reply #6 on: April 17, 2013, 11:20:09 am »
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

  • Beginner
  • *
  • Posts: 6
    • myWAm for Web&Tech Services
Re: Add extra fields to "Ask a question about product" Pop up form
« Reply #7 on: April 17, 2013, 14:43:14 pm »
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

  • VirtueMart Developer Team
  • Global Moderator
  • Full Member
  • *
  • Posts: 838
  • VirtueMart Version: VM3 on J3
Re: Add extra fields to "Ask a question about product" Pop up form
« Reply #8 on: April 20, 2013, 14:12:39 pm »
Also with a template override for product details page. There you can change the link.