jackojeka Posted January 7, 2014 Share Posted January 7, 2014 Hi guys, Currently, I have abit of a problem. I have created a contact form for the customers to fill in and include their feedback to be sent via email to my company. Example: Name: John Email: [email protected] Contact: 97687656 Feedback: Too messy! (This form is to be sent to my HR Management email) I have no problems with the html part. The only problem now is that I don't know where to put the php code. Hoping for you guys' swift reply. Thanks. Link to comment Share on other sites More sharing options...
NemoPS Posted January 7, 2014 Share Posted January 7, 2014 You must edit ContactController.php (controllers/front) Link to comment Share on other sites More sharing options...
vekia Posted January 7, 2014 Share Posted January 7, 2014 hello I have created a contact form for the customers to fill in and include their feedback to be sent via email to my company. where you created it? in what file? you want to create totally new contact form page? or maybe edit current default contact form as Nemo suggested? Link to comment Share on other sites More sharing options...
jackojeka Posted January 8, 2014 Author Share Posted January 8, 2014 Hi guys! I'm intending to create a new contact form by using a new CMS page. How should I proceed with putting my php code which contains the email sending process? Thanks! Link to comment Share on other sites More sharing options...
karthiiiiiiiiiik Posted January 8, 2014 Share Posted January 8, 2014 hi jackojeka , If you want to create a new contact form , you can do it by creating a module. it is one of the option you can make use of it. Link to comment Share on other sites More sharing options...
vekia Posted January 8, 2014 Share Posted January 8, 2014 if you wnato to create it on cms page, you have to modify CmsController.php inside init(); function add php script to send an email. something like: if (Tools::isSubmit($_POST['send_my_email'])){ script to send email here } Link to comment Share on other sites More sharing options...
NemoPS Posted January 8, 2014 Share Posted January 8, 2014 Or, if you mean a totally new page, you might find this useful: http://blog.arvixe.com/how-to-create-new-pages-in-prestashop/ It gives you more flexibility 1 Link to comment Share on other sites More sharing options...
vekia Posted January 8, 2014 Share Posted January 8, 2014 definitely i suggest to use Nemos sulution above Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now