VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: sohh on January 21, 2014, 04:45:21 AM

Title: Modify "Ask a Question"link -> open ajax menu instead
Post by: sohh on January 21, 2014, 04:45:21 AM
Hello!

I have an ajax module for contact forms, so i want to use it instead of "Ask a Question"form, so i want that when the user click on the "Ask a Question"button the ajax menu opens. Where should i change?

The codes to open the ajax are those:

pwebContact126.toggleForm(1);  ->java

OR

Open by link:
<a href="#" class="pwebcontact126_toggler">Click here</a>

OR

Open by image:
<a href="#" class="pwebcontact126_toggler"><img src="..."></a>

Also i`m not a developer, can someone show me exactly where should i change?

Thanks a lot!
Title: Re: Modify "Ask a Question"link -> open ajax menu instead
Post by: K&K media production on January 23, 2014, 20:52:58 PM
You need a template override for the product details page. There you can change the code for "ask a question".

Here you find more about template overrides:

http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
https://www.joomlashack.com/blog/joomla-templates/1067-customize-your-joomla-templates-by-learning-overrides
Title: Re: Modify "Ask a Question"link -> open ajax menu instead
Post by: sohh on January 24, 2014, 01:44:16 AM
Hello,

Thx a lot for the initiative, but i can`t do this, i`m not a developer, i read a lot but i could not get it. I found the form witch is in components- com_virtuemart-views-askquestion-tmpl

But i need to change before this, i want to change the action of the button "ask a question"

Can you help me showing more details please? I got how to do the override but i can't not locate e exact file and if i locate it i don`t know where to change.

Thx a lot.
Title: Re: Modify "Ask a Question"link -> open ajax menu instead
Post by: K&K media production on January 25, 2014, 20:17:00 PM
You need the productdetails page

views->productdetails->tmpl->default.php

Make a override for this file and change the "ask a question" button in this file.