{"id":351,"date":"2018-05-30T15:00:31","date_gmt":"2018-05-30T13:00:31","guid":{"rendered":"https:\/\/numa-bord.com\/miniblog\/?p=351"},"modified":"2018-05-30T15:00:31","modified_gmt":"2018-05-30T13:00:31","slug":"prestashop-1-7-modifier-des-champs-du-formulaire-de-contact","status":"publish","type":"post","link":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/","title":{"rendered":"Prestashop (1.7) : Modifier des champs du formulaire de contact"},"content":{"rendered":"<p>Prestashop propose une page contenant un formulaire de contact afin que les visiteurs et utilisateurs de votre boutique puissent communiquer avec vous.<br \/>\nCependant ce formulaire est peu personnalisable. Nous allons voir ci-dessous comment personnaliser ce formulaire. Notre exemple consistera en l&rsquo;ajout d&rsquo;un champ suppl\u00e9mentaire, mais la proc\u00e9dure permet permet de comprendre comment faire pour \u00e9galement supprimer ou modifier des champs existants.<\/p>\n<p>Premi\u00e8rement nous allons modifier le template du formulaire de contact afin de lui ajouter un champ.<br \/>\nPour cela nous allons r\u00e9cup\u00e9rer le template qui se situe dans votre th\u00e8me (th\u00e8me parent) ou bien directement dans le module \u00ab\u00a0<strong>contactform<\/strong>\u00a0\u00bb de prestashop.<br \/>\nDonc soit dans :<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/themes\/votre-theme-parent\/modules\/contactform\/views\/templates\/widget\/contactform.tpl<\/div><\/div>\n<p>Soit dans<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/modules\/contactform\/views\/templates\/widget\/contactform.tpl<\/div><\/div>\n<p>Et copier ce fichier dans votre theme enfant pour pouvoir le modifier proprement. C&rsquo;est \u00e0 dire dans :<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/themes\/votre-theme-enfant\/modules\/contactform\/views\/templates\/widget\/contactform.tpl<\/div><\/div>\n<p>Vous pouvez maintenant faire vos modifications dans ce fichier. Par exemple pour ajouter un champ \u00ab\u00a0T\u00e9l\u00e9phone\u00a0\u00bb (avec bien sur le html \u00e0 adapter en fonction de votre th\u00e8me et de la pr\u00e9sentation souhait\u00e9) :<\/p>\n<div class=\"codecolorer-container html4strict default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"html4strict codecolorer\"><span class=\"sc2\">&lt;<a href=\"http:\/\/december.com\/html\/4\/element\/div.html\"><span class=\"kw2\">div<\/span><\/a> <span class=\"kw3\">class<\/span><span class=\"sy0\">=<\/span><span class=\"st0\">&quot;form-group row&quot;<\/span>&gt;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"sc2\">&lt;<a href=\"http:\/\/december.com\/html\/4\/element\/div.html\"><span class=\"kw2\">div<\/span><\/a> <span class=\"kw3\">class<\/span><span class=\"sy0\">=<\/span><span class=\"st0\">&quot;col-md-12&quot;<\/span>&gt;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; <span class=\"sc2\">&lt;<a href=\"http:\/\/december.com\/html\/4\/element\/input.html\"><span class=\"kw2\">input<\/span><\/a> <span class=\"kw3\">class<\/span><span class=\"sy0\">=<\/span><span class=\"st0\">&quot;form-control&quot;<\/span> <span class=\"kw3\">name<\/span><span class=\"sy0\">=<\/span><span class=\"st0\">&quot;phone&quot;<\/span> <span class=\"kw3\">type<\/span><span class=\"sy0\">=<\/span><span class=\"st0\">&quot;text&quot;<\/span> placeholder<span class=\"sy0\">=<\/span><span class=\"st0\">&quot;T\u00e9l\u00e9phone&quot;<\/span> <span class=\"kw3\">value<\/span><span class=\"sy0\">=<\/span><span class=\"st0\">&quot;{$contact.phone}&quot;<\/span>&gt;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"sc2\">&lt;<span class=\"sy0\">\/<\/span><a href=\"http:\/\/december.com\/html\/4\/element\/div.html\"><span class=\"kw2\">div<\/span><\/a>&gt;<\/span><br \/>\n<span class=\"sc2\">&lt;<span class=\"sy0\">\/<\/span><a href=\"http:\/\/december.com\/html\/4\/element\/div.html\"><span class=\"kw2\">div<\/span><\/a>&gt;<\/span><\/div><\/div>\n<p>La seconde \u00e9tape consiste \u00e0 overrider le module contactform en \u00e9tendant la classe \u00ab\u00a0ContactForm\u00a0\u00bb que vous trouverez dans le fichier :<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/modules\/contactform\/contactform.php<\/div><\/div>\n<p>Pour cela nous cr\u00e9ons le fichiers suivant :<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/override\/modules\/contactform\/contactform.php<\/div><\/div>\n<p>qui contiendra le code suivant (pour commencer) :<\/p>\n<div class=\"codecolorer-container php default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"php codecolorer\"><span class=\"kw2\">&lt;?php<\/span><br \/>\n<br \/>\n<span class=\"kw1\">if<\/span> <span class=\"br0\">&#40;<\/span><span class=\"sy0\">!<\/span><a href=\"http:\/\/www.php.net\/defined\"><span class=\"kw3\">defined<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'_PS_VERSION_'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; <a href=\"http:\/\/www.php.net\/exit\"><span class=\"kw3\">exit<\/span><\/a><span class=\"sy0\">;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><br \/>\n<br \/>\n<span class=\"kw2\">class<\/span> ContactFormOverride <span class=\"kw2\">extends<\/span> Contactform <span class=\"br0\">&#123;<\/span><br \/>\n<br \/>\n<span class=\"co1\">\/\/code \u00e0 venir<\/span><br \/>\n<br \/>\n<span class=\"br0\">&#125;<\/span><\/div><\/div>\n<p>On va \u00e0 pr\u00e9sent remplacer la ligne \u00ab\u00a0\/\/code \u00e0 venir\u00a0\u00bb en copiant telles quelles les 2 fonctions \u00ab\u00a0<strong>getWidgetVariables<\/strong>\u00a0\u00bb et \u00ab\u00a0<strong>sendMessage<\/strong>\u00a0\u00bb pr\u00e9sentent dans le fichier d&rsquo;origine :<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/modules\/contactform\/contactform.php<\/div><\/div>\n<p>On adapter les ligne de la fonction \u00ab\u00a0<strong>getWidgetVariables<\/strong>\u00a0\u00bb pour ajouter notre champs :<\/p>\n<div class=\"codecolorer-container php default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"php codecolorer\"><span class=\"co1\">\/\/...<\/span><br \/>\n<span class=\"co1\">\/\/ajout de notre champ<\/span><br \/>\n<span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">contact<\/span><span class=\"br0\">&#91;<\/span><span class=\"st_h\">'phone'<\/span><span class=\"br0\">&#93;<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.php.net\/html_entity_decode\"><span class=\"kw3\">html_entity_decode<\/span><\/a><span class=\"br0\">&#40;<\/span>Tools<span class=\"sy0\">::<\/span><span class=\"me2\">getValue<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'phone'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"co1\">\/\/code d'origine<\/span><br \/>\n<span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">contact<\/span><span class=\"br0\">&#91;<\/span><span class=\"st_h\">'contacts'<\/span><span class=\"br0\">&#93;<\/span> <span class=\"sy0\">=<\/span> <span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">getTemplateVarContact<\/span><span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">contact<\/span><span class=\"br0\">&#91;<\/span><span class=\"st_h\">'message'<\/span><span class=\"br0\">&#93;<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.php.net\/html_entity_decode\"><span class=\"kw3\">html_entity_decode<\/span><\/a><span class=\"br0\">&#40;<\/span>Tools<span class=\"sy0\">::<\/span><span class=\"me2\">getValue<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'message'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"co1\">\/\/etc...<\/span><\/div><\/div>\n<p>Passons \u00e0 la fonction \u00ab\u00a0<strong>sendMessage<\/strong>\u00a0\u00bb ou il va falloir modifier plusieurs partie du code, mais ces parties sont assez facile \u00e0 rep\u00e9rer.<br \/>\nIl s&rsquo;agit des 3 suivantes :<\/p>\n<div class=\"codecolorer-container php default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"php codecolorer\"><span class=\"co1\">\/\/debut de la fonction<\/span><br \/>\n<span class=\"re0\">$extension<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.php.net\/array\"><span class=\"kw3\">array<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'.txt'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.rtf'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.doc'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.docx'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.pdf'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.zip'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.png'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.jpeg'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.gif'<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'.jpg'<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"re0\">$file_attachment<\/span> <span class=\"sy0\">=<\/span> Tools<span class=\"sy0\">::<\/span><span class=\"me2\">fileAttachment<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'fileUpload'<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"re0\">$message<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.php.net\/trim\"><span class=\"kw3\">trim<\/span><\/a><span class=\"br0\">&#40;<\/span>Tools<span class=\"sy0\">::<\/span><span class=\"me2\">getValue<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'message'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"co1\">\/\/ajout de notre champs<\/span><br \/>\n<span class=\"re0\">$phone<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.php.net\/trim\"><span class=\"kw3\">trim<\/span><\/a><span class=\"br0\">&#40;<\/span>Tools<span class=\"sy0\">::<\/span><span class=\"me2\">getValue<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'phone'<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"co1\">\/\/...<\/span><\/div><\/div>\n<div class=\"codecolorer-container php default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"php codecolorer\"><span class=\"co1\">\/\/controle des diff\u00e9rentes champs du formulaire<\/span><br \/>\n<span class=\"br0\">&#125;<\/span> <span class=\"kw1\">elseif<\/span> <span class=\"br0\">&#40;<\/span><span class=\"sy0\">!<\/span>Validate<span class=\"sy0\">::<\/span><span class=\"me2\">isCleanHtml<\/span><span class=\"br0\">&#40;<\/span><span class=\"re0\">$message<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">context<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">controller<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">errors<\/span><span class=\"br0\">&#91;<\/span><span class=\"br0\">&#93;<\/span> <span class=\"sy0\">=<\/span> <span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">trans<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'Invalid message'<\/span><span class=\"sy0\">,<\/span> <a href=\"http:\/\/www.php.net\/array\"><span class=\"kw3\">array<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'Shop.Notifications.Error'<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span> <span class=\"kw1\">elseif<\/span> <span class=\"br0\">&#40;<\/span><span class=\"sy0\">!<\/span>Validate<span class=\"sy0\">::<\/span><span class=\"me2\">isCleanHtml<\/span><span class=\"br0\">&#40;<\/span><span class=\"re0\">$phone<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span> <span class=\"br0\">&#123;<\/span><span class=\"co1\">\/\/contr\u00f4le de notre champ suppl\u00e9mentaire.<\/span><br \/>\n&nbsp; &nbsp; <span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">context<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">controller<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">errors<\/span><span class=\"br0\">&#91;<\/span><span class=\"br0\">&#93;<\/span> <span class=\"sy0\">=<\/span> <span class=\"re0\">$this<\/span><span class=\"sy0\">-&gt;<\/span><span class=\"me1\">trans<\/span><span class=\"br0\">&#40;<\/span><span class=\"st_h\">'T\u00e9l\u00e9phone invalide'<\/span><span class=\"sy0\">,<\/span> <a href=\"http:\/\/www.php.net\/array\"><span class=\"kw3\">array<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span> <span class=\"st_h\">'Shop.Notifications.Error'<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><span class=\"co1\">\/\/....<\/span><\/div><\/div>\n<div class=\"codecolorer-container php default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"php codecolorer\"><span class=\"re0\">$var_list<\/span> <span class=\"sy0\">=<\/span> <span class=\"br0\">&#91;<\/span><br \/>\n&nbsp; &nbsp;<span class=\"st_h\">'{order_name}'<\/span> <span class=\"sy0\">=&gt;<\/span> <span class=\"st_h\">'-'<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp;<span class=\"st_h\">'{attached_file}'<\/span> <span class=\"sy0\">=&gt;<\/span> <span class=\"st_h\">'-'<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp;<span class=\"st_h\">'{message}'<\/span> <span class=\"sy0\">=&gt;<\/span> Tools<span class=\"sy0\">::<\/span><a href=\"http:\/\/www.php.net\/nl2br\"><span class=\"kw3\">nl2br<\/span><\/a><span class=\"br0\">&#40;<\/span><a href=\"http:\/\/www.php.net\/stripslashes\"><span class=\"kw3\">stripslashes<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"re0\">$message<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp;<span class=\"st_h\">'{email}'<\/span> <span class=\"sy0\">=&gt;<\/span> <span class=\"re0\">$from<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp;<span class=\"st_h\">'{product_name}'<\/span> <span class=\"sy0\">=&gt;<\/span> <span class=\"st_h\">''<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp;<span class=\"st_h\">'{phone}'<\/span> <span class=\"sy0\">=&gt;<\/span> Tools<span class=\"sy0\">::<\/span><a href=\"http:\/\/www.php.net\/nl2br\"><span class=\"kw3\">nl2br<\/span><\/a><span class=\"br0\">&#40;<\/span><a href=\"http:\/\/www.php.net\/stripslashes\"><span class=\"kw3\">stripslashes<\/span><\/a><span class=\"br0\">&#40;<\/span><span class=\"re0\">$phone<\/span><span class=\"br0\">&#41;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">,<\/span><span class=\"co1\">\/\/notre ajout<\/span><br \/>\n&nbsp;<span class=\"br0\">&#93;<\/span><span class=\"sy0\">;<\/span><\/div><\/div>\n<p>Il nous reste une derni\u00e8re \u00e9tape, il s&rsquo;agit de modifier les templates correspondant \u00e0 l&#8217;email transmis par le formulaire.<br \/>\nVous pouvez retrouver ces template dans<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/mails\/fr\/contact.html<br \/>\n\/mails\/fr\/contact.txt<\/div><\/div>\n<p>en adaptant la partie \/fr\/ selon votre language.<br \/>\nVous devez copier ces fichier dans votre th\u00e8me enfant :<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">\/themes\/votre-theme-enfant\/mails\/fr\/contact.html<br \/>\n...<\/div><\/div>\n<p>Et modifier leur contenus en ajoutant les informations concernant le nouveau champ.<br \/>\nPar exemple :<\/p>\n<div class=\"codecolorer-container html4strict default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"html4strict codecolorer\"><span class=\"sc2\">&lt;<a href=\"http:\/\/december.com\/html\/4\/element\/span.html\"><span class=\"kw2\">span<\/span><\/a> <span class=\"kw3\">style<\/span><span class=\"sy0\">=<\/span><span class=\"st0\">&quot;color:#333&quot;<\/span>&gt;&lt;<a href=\"http:\/\/december.com\/html\/4\/element\/strong.html\"><span class=\"kw2\">strong<\/span><\/a>&gt;<\/span>T\u00e9l\u00e9phone du client :<span class=\"sc2\">&lt;<span class=\"sy0\">\/<\/span><a href=\"http:\/\/december.com\/html\/4\/element\/strong.html\"><span class=\"kw2\">strong<\/span><\/a>&gt;&lt;<span class=\"sy0\">\/<\/span><a href=\"http:\/\/december.com\/html\/4\/element\/span.html\"><span class=\"kw2\">span<\/span><\/a>&gt;<\/span> {phone}<span class=\"sc2\">&lt;<a href=\"http:\/\/december.com\/html\/4\/element\/br.html\"><span class=\"kw2\">br<\/span><\/a> <span class=\"sy0\">\/<\/span>&gt;&lt;<a href=\"http:\/\/december.com\/html\/4\/element\/br.html\"><span class=\"kw2\">br<\/span><\/a> <span class=\"sy0\">\/<\/span>&gt;<\/span><\/div><\/div>\n<p>Normalement tout est bon !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prestashop propose une page contenant un formulaire de contact afin que les visiteurs et utilisateurs de votre boutique puissent communiquer avec vous. Cependant ce formulaire est peu personnalisable. Nous allons voir ci-dessous comment personnaliser ce formulaire. Notre exemple consistera en l&rsquo;ajout d&rsquo;un champ suppl\u00e9mentaire, mais la proc\u00e9dure permet permet de comprendre comment faire pour \u00e9galement [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2,7,16],"tags":[],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-developpement","category-php","category-prestashop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Prestashop (1.7) : Modifier des champs du formulaire de contact - Pense b\u00eate d&#039;un d\u00e9veloppeur web<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prestashop (1.7) : Modifier des champs du formulaire de contact - Pense b\u00eate d&#039;un d\u00e9veloppeur web\" \/>\n<meta property=\"og:description\" content=\"Prestashop propose une page contenant un formulaire de contact afin que les visiteurs et utilisateurs de votre boutique puissent communiquer avec vous. Cependant ce formulaire est peu personnalisable. Nous allons voir ci-dessous comment personnaliser ce formulaire. Notre exemple consistera en l&rsquo;ajout d&rsquo;un champ suppl\u00e9mentaire, mais la proc\u00e9dure permet permet de comprendre comment faire pour \u00e9galement [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/\" \/>\n<meta property=\"og:site_name\" content=\"Pense b\u00eate d&#039;un d\u00e9veloppeur web\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-30T13:00:31+00:00\" \/>\n<meta name=\"author\" content=\"Numa\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u00c9crit par\" \/>\n\t<meta name=\"twitter:data1\" content=\"Numa\" \/>\n\t<meta name=\"twitter:label2\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/\"},\"author\":{\"name\":\"Numa\",\"@id\":\"https:\/\/numa-bord.com\/miniblog\/#\/schema\/person\/f9d00acd1703f17e5a6895283eb46a7e\"},\"headline\":\"Prestashop (1.7) : Modifier des champs du formulaire de contact\",\"datePublished\":\"2018-05-30T13:00:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/\"},\"wordCount\":261,\"commentCount\":14,\"articleSection\":[\"D\u00e9veloppement\",\"PHP\",\"Prestashop\"],\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/\",\"url\":\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/\",\"name\":\"Prestashop (1.7) : Modifier des champs du formulaire de contact - Pense b\u00eate d&#039;un d\u00e9veloppeur web\",\"isPartOf\":{\"@id\":\"https:\/\/numa-bord.com\/miniblog\/#website\"},\"datePublished\":\"2018-05-30T13:00:31+00:00\",\"author\":{\"@id\":\"https:\/\/numa-bord.com\/miniblog\/#\/schema\/person\/f9d00acd1703f17e5a6895283eb46a7e\"},\"breadcrumb\":{\"@id\":\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/numa-bord.com\/miniblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prestashop (1.7) : Modifier des champs du formulaire de contact\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/numa-bord.com\/miniblog\/#website\",\"url\":\"https:\/\/numa-bord.com\/miniblog\/\",\"name\":\"Pense b\u00eate d&#039;un d\u00e9veloppeur web\",\"description\":\"(php, javascript, Symfony, Wordpress....)\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/numa-bord.com\/miniblog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/numa-bord.com\/miniblog\/#\/schema\/person\/f9d00acd1703f17e5a6895283eb46a7e\",\"name\":\"Numa\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f21d1af4658a7106211915940584534c1e0b3eef3f12eb67a697686cad70b64a?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f21d1af4658a7106211915940584534c1e0b3eef3f12eb67a697686cad70b64a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f21d1af4658a7106211915940584534c1e0b3eef3f12eb67a697686cad70b64a?s=96&d=mm&r=g\",\"caption\":\"Numa\"},\"url\":\"https:\/\/numa-bord.com\/miniblog\/author\/negonner\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prestashop (1.7) : Modifier des champs du formulaire de contact - Pense b\u00eate d&#039;un d\u00e9veloppeur web","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/","og_locale":"fr_FR","og_type":"article","og_title":"Prestashop (1.7) : Modifier des champs du formulaire de contact - Pense b\u00eate d&#039;un d\u00e9veloppeur web","og_description":"Prestashop propose une page contenant un formulaire de contact afin que les visiteurs et utilisateurs de votre boutique puissent communiquer avec vous. Cependant ce formulaire est peu personnalisable. Nous allons voir ci-dessous comment personnaliser ce formulaire. Notre exemple consistera en l&rsquo;ajout d&rsquo;un champ suppl\u00e9mentaire, mais la proc\u00e9dure permet permet de comprendre comment faire pour \u00e9galement [&hellip;]","og_url":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/","og_site_name":"Pense b\u00eate d&#039;un d\u00e9veloppeur web","article_published_time":"2018-05-30T13:00:31+00:00","author":"Numa","twitter_card":"summary_large_image","twitter_misc":{"\u00c9crit par":"Numa","Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#article","isPartOf":{"@id":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/"},"author":{"name":"Numa","@id":"https:\/\/numa-bord.com\/miniblog\/#\/schema\/person\/f9d00acd1703f17e5a6895283eb46a7e"},"headline":"Prestashop (1.7) : Modifier des champs du formulaire de contact","datePublished":"2018-05-30T13:00:31+00:00","mainEntityOfPage":{"@id":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/"},"wordCount":261,"commentCount":14,"articleSection":["D\u00e9veloppement","PHP","Prestashop"],"inLanguage":"fr-FR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/","url":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/","name":"Prestashop (1.7) : Modifier des champs du formulaire de contact - Pense b\u00eate d&#039;un d\u00e9veloppeur web","isPartOf":{"@id":"https:\/\/numa-bord.com\/miniblog\/#website"},"datePublished":"2018-05-30T13:00:31+00:00","author":{"@id":"https:\/\/numa-bord.com\/miniblog\/#\/schema\/person\/f9d00acd1703f17e5a6895283eb46a7e"},"breadcrumb":{"@id":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/numa-bord.com\/miniblog\/prestashop-1-7-modifier-des-champs-du-formulaire-de-contact\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/numa-bord.com\/miniblog\/"},{"@type":"ListItem","position":2,"name":"Prestashop (1.7) : Modifier des champs du formulaire de contact"}]},{"@type":"WebSite","@id":"https:\/\/numa-bord.com\/miniblog\/#website","url":"https:\/\/numa-bord.com\/miniblog\/","name":"Pense b\u00eate d&#039;un d\u00e9veloppeur web","description":"(php, javascript, Symfony, Wordpress....)","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/numa-bord.com\/miniblog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/numa-bord.com\/miniblog\/#\/schema\/person\/f9d00acd1703f17e5a6895283eb46a7e","name":"Numa","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/secure.gravatar.com\/avatar\/f21d1af4658a7106211915940584534c1e0b3eef3f12eb67a697686cad70b64a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f21d1af4658a7106211915940584534c1e0b3eef3f12eb67a697686cad70b64a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f21d1af4658a7106211915940584534c1e0b3eef3f12eb67a697686cad70b64a?s=96&d=mm&r=g","caption":"Numa"},"url":"https:\/\/numa-bord.com\/miniblog\/author\/negonner\/"}]}},"_links":{"self":[{"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":13,"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/posts\/351\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/numa-bord.com\/miniblog\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}