Hello, I'm actually trying to make a custom contact form in footer section of my prestashop. I read a lot of things and try a lot too but i never achieved the whole process.
1 - First try : At first, i've tried to copy contact-form.tpl inside the footer.tpl... it workeds BUT it still being linked to the other contact form.... and there is not all the fields i needed.
2 - Second solution :
After some search, i've tried to do like it was said on other thread where it is said to duplicate all contact form config and tpl files.
i mean duplicate and rename those files :
Classes > Contact.php
Controllers > front > ContactController.php
(where i modify lines who refers to contact.php and contact-form.tpl)
themes > my-theme > contact-form.tpl
But, in never achieved to do this properly.. and i never achieve to reach the new contact page. Maybe this is the best solution, but i do not understood it well.
NOW :
I think it would be less complicated to make it from scratch (i really don't wanna rely on a module).
I REALLY need some help to achieve that :
So, this is my base HTML :
<form action="" method="">
<p>
<select class="support-type" name="support-type">
<option>
Technical support
</option>
<option>
Commercial support
</option>
</select>
</p>
<p>
<label for="name" class="hidden">Your name</label>
<input placeholder="your name" id="name" type="text" name="name"/>
</p>
<p>
<label for="email" class="hidden">Your email</label>
<input placeholder="your email" id="email" type="email" name="email"/>
</p>
<p>
<textarea placeholder="your message"></textarea>
</p>
<p>
<button id="submit" type="submit" value="submit">
Submit
</button>
</p>
</form>
I can't go any further... Thanks for reading.