pabloledesma Posted September 11, 2013 Share Posted September 11, 2013 (edited) Cordial Saludo Estoy en la labor de Configurar mi formulario de contacto para que siempre envié los mensajes a un solo correo electrónico y así poder eliminar el campo "Tema" del formulario de contacto. La tienda es http://allianceinternational.com.co/ Si alguien me puede dar algún tip para esto quedaría muy agradecido. Edited September 12, 2013 by pabloledesma (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted September 11, 2013 Share Posted September 11, 2013 En el fichero: /themes/tu-plantilla/contact-form.tpl Busca esto: <p class="select"> <label for="id_contact">{l s='Subject Heading'}</label> {if isset($customerThread.id_contact)} {foreach from=$contacts item=contact} {if $contact.id_contact == $customerThread.id_contact} <input type="text" id="contact_name" name="contact_name" value="{$contact.name|escape:'htmlall':'UTF-8'}" readonly="readonly" /> <input type="hidden" name="id_contact" value="{$contact.id_contact}" /> {/if} {/foreach} </p> {else} <select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')"> <option value="0">{l s='-- Choose --'}</option> {foreach from=$contacts item=contact} <option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> <p id="desc_contact0" class="desc_contact"> </p> {foreach from=$contacts item=contact} <p id="desc_contact{$contact.id_contact|intval}" class="desc_contact" style="display:none;"> {$contact.description|escape:'htmlall':'UTF-8'} </p> {/foreach} {/if} y dejalo asi: {*<p class="select"> <label for="id_contact">{l s='Subject Heading'}</label> {if isset($customerThread.id_contact)} {foreach from=$contacts item=contact} {if $contact.id_contact == $customerThread.id_contact} <input type="text" id="contact_name" name="contact_name" value="{$contact.name|escape:'htmlall':'UTF-8'}" readonly="readonly" /> <input type="hidden" name="id_contact" value="{$contact.id_contact}" /> {/if} {/foreach} </p> {else} <select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')"> <option value="0">{l s='-- Choose --'}</option> {foreach from=$contacts item=contact} <option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> </p> <p id="desc_contact0" class="desc_contact"> </p> {foreach from=$contacts item=contact} <p id="desc_contact{$contact.id_contact|intval}" class="desc_contact" style="display:none;"> {$contact.description|escape:'htmlall':'UTF-8'} </p> {/foreach} {/if} *} y ahora debajo añade esto: <input type="hidden" name="id_contact" value="id_contacto" /> Donde en id_contacto pondras el id contacto referente a la pestaña Clientes -> Contactos, al que quieras que por defecto envie el email. Adjunto Imagen 1 Link to comment Share on other sites More sharing options...
pabloledesma Posted September 12, 2013 Author Share Posted September 12, 2013 Muchas gracias victor!! Funciona de maravilla Link to comment Share on other sites More sharing options...
nadie Posted September 12, 2013 Share Posted September 12, 2013 Un placer ayudarte y servirte! Un saludo y recuerda que estaremos en el foro, para guiarte por este mundo oscuro y tenebroso. PD: Cierro tema. Saludos, Link to comment Share on other sites More sharing options...
Recommended Posts