If you are looking for a way to add new fields to PrestaShop's default contact form - you can check this guide.
In this short guide i will point you a steps to add new fields in default prestashop's contact form page. Thanks to this tutorial your contact form will have additional fields "name, company name, phone". But of course you can use any number of own fields.

Adding new fields in PrestaShop 1.7 contact form
<div class="form-group row">
<label class="col-md-3 form-control-label">{l s='Name' d='Shop.Forms.Labels'}</label>
<div class="col-md-6">
<input class="form-control" name="name" placeholder="{l s='Your name' d='Shop.Forms.Labels'}">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label">{l s='Company name' d='Shop.Forms.Labels'}</label>
<div class="col-md-6">
<input class="form-control" name="company" placeholder="{l s='Company name' d='Shop.Forms.Labels'}">
</div>
</div>
<div class="form-group row">
<label class="col-md-3 form-control-label">{l s='Phone' d='Shop.Forms.Labels'}</label>
<div class="col-md-6">
<input class="form-control" name="phone" placeholder="12-123456789">
</div>
</div>
$message = trim(Tools::getValue('message'));
$message = $this->l('Name:'). ' '.trim(Tools::getValue('name')) . '<br/>' . $this->l('Company name:'). ' '.trim(Tools::getValue('company')) . '<br/>' . $this->l('Phone:' ). ' ' . trim(Tools::getValue('phone')) . '<br/>' . trim(Tools::getValue('message'));
that's all!
from now your contact from will support new fields and these additional informations will be delivered with message.
best regards
milos
Article written byMilosz Myszczuk, PrestaShop expert. CEO and founder of the VEKIA interactive agency. Learn more.
If you like this article, support our work!

Start with AI visibility at zero cost. Free LLMS.txt Generator writes a structured llms.txt file to ...

Quote Enterprise is an enterprise-class quote-to-order module for PrestaShop: customers request offe...
89.99 €
149.99 €

Turn one-time buyers into loyal, repeat customers with a prepaid wallet that keeps their money in yo...
59.99 €

LLMS.txt Generator Pro publishes a standards-compliant llms.txt file so AI crawlers (ChatGPT, Perple...
49.99 €