I added some fields in the Magento contact form, but I have a problem with one field, which is a select type.
I try to display the label of the option on the mail but now the value is display....
Can we fix that ? (form.phtml)
<select name="query-select" id="query-select">
<option disabled>Votre type de demande</option>
<option value="demande-devis">Une demande de devis</option>
<option value="delai-livraison">Un délai de livraison</option>
<option value="retour-marchandise">Une demande de retour de marchandise</option>
<option value="dispo-produit">La disponibilité des produits</option>
<option value="ouverture-compte">Une ouverture de compte</option>
<option value="sav">Une réclamation/SAV</option>
<option value="suivi">Le suivi de ma commande</option>
<option value="autre">Autre</option>
</select>
submitted_form.html
{{template config_path="design/email/header_template"}}
<table class="message-details">
<tr>
<td><strong>{{trans "Name"}}</strong></td>
<td>{{var data.name}}</td>
</tr>
<tr>
<td><strong>{{trans "Email"}}</strong></td>
<td>{{var data.email}}</td>
</tr>
<tr>
<td><strong>{{trans "Entreprise"}}</strong></td>
<td>{{var data.company}}</td>
</tr>
<tr>
<td><strong>{{trans "Type de demande"}}</strong></td>
<td>{{var data.query-select}}</td>
</tr>
</table>
<p><strong>{{trans "Message"}}</strong></p>
<p>{{var data.comment}}</p>
{{template config_path="design/email/footer_template"}}
Thanks !