elpelado Posted June 22, 2011 Share Posted June 22, 2011 Hola, tengo un formulario de Contacto en un CMS (http://www.insumosymaquinas.com.ar/content/7-contacto)Si bien el formulario está completo, cuando lo llenan, a mi solo me llega el asunto y el mail. Necesito que tambien me llegue el teléfono y la Localidad.Cómo hago?Adjunto ambos archivos:cms/contactocontact-form.php contact-form.php contacto en cms.txt Link to comment Share on other sites More sharing options...
Ganthet Posted January 3, 2012 Share Posted January 3, 2012 que tal Pelado por casualidad pudiste solucionar este tema?, tengo le mismo problema y no encuentro solucion en el foro :S Link to comment Share on other sites More sharing options...
wippa Posted January 20, 2012 Share Posted January 20, 2012 Deberias revisar pues, el contact form normal, y comprobar que el controlador del formulario que se encarga de ejecutarlo recoge los mismos valores que ahí se postean. ¿Es posible que lo hayais bajado y sea para alguna version vieja de ps? Suele pasar... no es normal que algo tan sencillo simplemente no vaya. Link to comment Share on other sites More sharing options...
LaVallDesign Posted April 10, 2012 Share Posted April 10, 2012 Como llevais el tema? Link to comment Share on other sites More sharing options...
wippa Posted September 5, 2012 Share Posted September 5, 2012 No lo llevan. Link to comment Share on other sites More sharing options...
nadie Posted September 5, 2012 Share Posted September 5, 2012 Aquí: http://www.prestasho...post__p__653131 tienes una mini guía básica creada por el usuario clearvuecyclones, que os servirá, para poder saber como añadir campos nuevos y que se reciben por correo en el formulario de contacto. I have successfully added a name field to the contact form in PrestaShop 1.4.4.0. I edited these files: ----controllers\contactcontoller.php (this should go in the override\controllers folder when complete) ----mails\en\contact.txt ----mails\en\contact.html ----themes\yourtheme\contact-form.tpl contact-form.tpl <p class="text"> <label for="name">{l s='Name'}</label> {if isset($customerThread.name)} <input type="text" id="name" name="fromname" value="{$customerThread.name}" readonly="readonly" /> {else} <input type="text" id="name" name="fromname" value="{$name}" /> {/if} </p> contactcontroller.php Line 82: (validate Name field is filled in) if (!($fromname = trim(Tools::getValue('fromname'))) OR (!($fromname = nl2br2($fromname)))) $this->errors[] = Tools::displayError('Contact Name cannot be blank'); elseif (!($from = trim(Tools::getValue('from'))) OR !Validate::isEmail($from)) $this->errors[] = Tools::displayError('Invalid e-mail address'); Line 156 (orig) (send fromName as array parm and as name in Mail header) if (Mail::Send((int)(self::$cookie->id_lang), 'contact', Mail::l('Message from contact form'), array('{email}' => $from, '{message}' => stripslashes($message),'{fromName}' => stripslashes($fromname)), $contact->email, $contact->name, $from, ((int)(self::$cookie->id_customer) ? $customer->firstname.' '.$customer->lastname : $fromname), $fileAttachment) Line 208 (orig) if (Mail::Send((int)(self::$cookie->id_lang), 'contact', Mail::l('Message from contact form'), array('{email}' => $from, '{message}' => stripslashes($message),'{fromName}' => stripslashes($fromname)), $contact->email, $contact->name, $from, ((int)(self::$cookie->id_customer) ? $customer->firstname.' '.$customer->lastname : $fromname), $fileAttachment) contact.html Line 18 <TR> <TD align=left>Name: <STRONG>{fromName}</STRONG> <BR></TD></TR> contact.txt (added at Line 5) Name: {fromName} I hope this helps someone else. Link to comment Share on other sites More sharing options...
Recommended Posts