karas9999 Posted November 25, 2013 Share Posted November 25, 2013 (edited) Hi! i'd like to add "send a message" contact form: to the main page, something like that: How do i do that? Please help!!! I've positioned it on the main page by copying a code from contact-form.tpl file, it appeared but did not send any message. Edited November 25, 2013 by karas9999 (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted November 25, 2013 Share Posted November 25, 2013 You have to redirect the user to the correct controller. In the code you pasted, try and change <form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" enctype="multipart/form-data"> to <form action="{$link->getPageLink('contact')}" method="post" class="std" enctype="multipart/form-data"> DIdn't test it, but it *might* work Link to comment Share on other sites More sharing options...
karas9999 Posted November 25, 2013 Author Share Posted November 25, 2013 i changed tho code but it not really worked. when i press send button it redirects me to the contact page. is it possible to do this without redirection to another page. Costumers should stay on the page where contact form positioned after pressing send button. Link to comment Share on other sites More sharing options...
NemoPS Posted November 25, 2013 Share Posted November 25, 2013 You need to do a whole lot of modifications for that, it's quite hard to explain it on a single topic. Maybe there are tutorials about it! Link to comment Share on other sites More sharing options...
vekia Posted November 26, 2013 Share Posted November 26, 2013 you can do it with modificaiton of frontController, you can paste there php functions to send emails. check this file: /classes/controllers/frontController.php add own code to init() function :-) Link to comment Share on other sites More sharing options...
Recommended Posts