d10gen3 Posted March 5, 2015 Share Posted March 5, 2015 Hi, my company has an online store which fits very good with prestashop, additionally, it provides services that cannot be sold through the store. For that reason I was asked to create a special form that needs to collect different information from the one that the default contact us handles. So, I need to create a custom contact form that should receive the following information: Full name Type: text (*required) E-mail Type: text (*required) Phone number Type: text (*required) Service Type: hidden (*required) -> It will come from the $_GET variable Subscribe to newsletter Type: checkbox Message Type: textarea With this information, the form has to send an e-mail to the default e-mail account and additionally if possible if the person checked the Subscribe to newsletter checkbox, it will also have to add that information to the right table in the database (ps_newsletter i believe). So basically I was wondering how should I do it, I already went through a lot of tutorials that suggest I should create a new page in the root, add the controller and the tpl file: /root-of-my-site/service-contact.php /root-of-my-site/controllers/ServiceContactController.php /root-of-my-site/themes/my-theme/service-contact.tpl Thanks in advance if you can help me with a set of instructions to accomplish this task 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