Bem vindo ao brockdev.com, não seja tímido compartilhe suas duvidas e conhecimento. :D

Modelos de email para contatos

brunowdbrunowd Usuário
editado March 2014 em Tutoriais
Olá pessoal,


Preciso ter mais um modelo de contato para o 2º form já criado.
Tenho 2 formullários:

form.phtml (padrão) - contato norrmal.

form_consulta.phtml (personalizado) - contato para orçamento

Já fui em:

Sistema -> Configuração -> Contatos -> Opções de Email

mas nada resolveu...alguma ideia?
Meu projeto :
http://www.mezzbrin.bravunet.com/magentomezz/index.php/
Obrigado.

Comentários

  • Jonatan Machado Moderador Global, Administrador
    Ola brunowd
    Você pode fazer um form sem integraçao com o magento.
    Arsenal Web Design.com
    Desenvolvimento de Lojas Virtuais
    Magento | Zend Framework | HTML5 | CSS3 | Blogs
    image
    E-mail: contato@brockdev.com
  • brunowdbrunowd Usuário
    disse:

    Ola brunowd
    Você pode fazer um form sem integraçao com o magento.


    Curti a ideia ,tem como me passar algum link, algum jeito de fazer ??
  • brunowdbrunowd Usuário
    meu form_consulta.phtml

    <?php
    /**
    * Magento
    *
    * NOTICE OF LICENSE
    *
    * This source file is subject to the Academic Free License (AFL 3.0)
    * that is bundled with this package in the file LICENSE_AFL.txt.
    * It is also available through the world-wide-web at this URL:
    * http://opensource.org/licenses/afl-3.0.php
    * If you did not receive a copy of the license and are unable to
    * obtain it through the world-wide-web, please send an email
    * to license@magentocommerce.com so we can send you a copy immediately.
    *
    * DISCLAIMER
    *
    * Do not edit or add to this file if you wish to upgrade Magento to newer
    * versions in the future. If you wish to customize Magento for your
    * needs please refer to http://www.magentocommerce.com for more information.
    *
    * @category design
    * @package base_default
    * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
    * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
    */
    ?>
    <div id=\"messages_product_view\"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
    <div class=\"page-title\">
    <h1><?php echo Mage::helper('contacts')->__('Contact Us') ?></h1>
    </div>
    <form action=\"<?php echo $this->getFormAction(); ?>\" id=\"contactForm\" method=\"post\">
    <div class=\"fieldset\">
    <h2 class=\"legend\"><?php echo Mage::helper('contacts')->__('Orçamento') ?></h2>
    <ul class=\"form-list\">
    <li class=\"fields\">
    <div class=\"field\">
    <label for=\"name\" class=\"required\"><em>*</em><?php echo Mage::helper('contacts')->__('Name') ?></label>
    <div class=\"input-box\">
    <input name=\"name\" id=\"name\" title=\"<?php echo Mage::helper('contacts')->__('Name') ?>\" value=\"<?php echo $this->escapeHtml($this->helper('contacts')->getUserName()) ?>\" class=\"input-text required-entry\" type=\"text\" />
    </div>
    </div>










    <div class=\"field\">
    <label for=\"email\" class=\"required\"><em>*</em><?php echo Mage::helper('contacts')->__('Email') ?></label>
    <div class=\"input-box\">
    <input name=\"email\" id=\"email\" title=\"<?php echo Mage::helper('contacts')->__('Email') ?>\" value=\"<?php echo $this->escapeHtml($this->helper('contacts')->getUserEmail()) ?>\" class=\"input-text required-entry validate-email\" type=\"text\" />
    </div>
    </div>
    </li>



    <div class=\"clear\"></div>

    <div class=\"input-box\">
    <label for=\"setor\"><?php echo $this->__('Setor') ?></label><br />
    <input name=\"setor\" id=\"setor\" title=\"<?php echo $this->__('Setor') ?>\" value=\"\" class=\"input-text\" type=\"text\"/>
    </div>


    <li>
    <label for=\"telephone\"><?php echo Mage::helper('contacts')->__('Telephone') ?></label>
    <div class=\"input-box\">
    <input name=\"telephone\" id=\"telephone\" title=\"<?php echo Mage::helper('contacts')->__('Telephone') ?>\" value=\"\" class=\"input-text\" type=\"text\" />
    </div>
    </li>
    <li class=\"wide\">
    <label for=\"comment\" class=\"required\"><em>*</em><?php echo Mage::helper('contacts')->__('Comment') ?></label>
    <div class=\"input-box\">
    <textarea name=\"comment\" id=\"comment\" title=\"<?php echo Mage::helper('contacts')->__('Comment') ?>\" class=\"required-entry input-text\" cols=\"5\" rows=\"3\"></textarea>
    </div>
    </li>
    </ul>
    </div>
    <div class=\"buttons-set\">
    <p class=\"required\"><?php echo Mage::helper('contacts')->__('* Required Fields') ?></p>
    <input type=\"text\" name=\"hideit\" id=\"hideit\" value=\"\" style=\"display:none !important;\" />
    <button type=\"submit\" title=\"<?php echo Mage::helper('contacts')->__('Submit') ?>\" class=\"button\"><span><span><?php echo Mage::helper('contacts')->__('Submit') ?></span></span></button>
    </div>
    </form>
    <script type=\"text/javascript\">
    //<![CDATA[
    var contactForm = new VarienForm('contactForm', true);
    //]]>
    </script>
  • Jonatan Machado Moderador Global, Administrador
    Voce tem que fazer um form com php
    http://www.php.net/manual/pt_BR/tutorial.forms.php
    Arsenal Web Design.com
    Desenvolvimento de Lojas Virtuais
    Magento | Zend Framework | HTML5 | CSS3 | Blogs
    image
    E-mail: contato@brockdev.com
Entre ou Registre-se para fazer um comentário.