Multiple Contact Forms on Magento

纵饮孤独 提交于 2019-11-30 21:24:27
paj

In CMS>Manage Pages create and enable a new page (or you could use a static block) e.g. call the page My Contact Form with a url ID of my-contact-form and a layout that matches your theme. For the content of the new page add

{{block type='core/template' template='contacts/mycontactform.phtml'}}

Now in your template folder (app/design/frontend/default/default/template/contacts for default theme in Magento 1.3.x) copy the existing form.phtml file, rename it to mycontactform.phtml and copy it back to the contacts folder. Edit the new mycontactform.phtml code and html as you wish to create your new contact form.

Load the new form by going to http://www.example.com/my-contact-form

Hope that helps...

In adendum to paj answer: You also have to edit the email template to include whatever new fields you just added.

Keep in mind that both your new contact form and Magento original contact form (an whatever future contact forms you may add in the future with in this way) will all use the same email template.

So in order to have meaningful emails sent, you need to "program" the template using the {{depend}} directive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!