contact button behavior

  • Posts: 39
  • Thank you received: 1
11 years 10 months ago #118119

In the process of customizing the product page contact button system I have managed to get the contact button (from 'display a contact button on the product page') to open up the contact form in a modal window (component.php with its own styling), present the exact form we need, and send from a customized email template. There is just one task remaining and I am stuck. When you hit 'send' (previously 'OK') the modal window loads the full home page of the site with relevant message into the modal window itself. I would like for just the relevant message to load into the modal window after submitting the form. How can this be done?

-- url of the page with the problem -- : www.destroyallguitars.net/index.php/guit.../category_pathway-14
-- HikaShop version -- :2.1.1
-- Joomla version -- : 3.0.3
-- PHP version -- : 5.3.24
-- Browser(s) name and version -- : any browser
-- Error-message(debug-mod must be tuned on) -- : none

Please Log in or Create an account to join the conversation.

  • Posts: 83989
  • Thank you received: 13604
  • MODERATOR
11 years 10 months ago #118132

Hi,

It's actually quite simple.
In the contact form page, you need to add a hidden input with the name tmpl and the value component
That way, the resulting page will load in the popup without the template around it.

Please Log in or Create an account to join the conversation.

  • Posts: 39
  • Thank you received: 1
11 years 10 months ago #118307

Perfect. I really wasn't expecting it to be that easy. Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum