Magento上的多个联系表单 [英] Multiple Contact Forms on Magento
问题描述
我正在寻找创建一个新的联系表格来查询Magento。从头开始创建一个模块似乎有点浪费时间。有人知道最明智和最快捷的方式吗?
谢谢!
{{block type ='core / template'template ='contacts / mycontactform.phtml '}}
现在在您的模板文件夹(app / design / frontend / default / default / template / Magento 1.3.x默认主题的联系人)复制现有的form.phtml文件,将其重命名为mycontactform.phtml并将其复制回联系人文件夹。编辑新的mycontactform.phtml代码和html,以便创建新的联系表单。
通过转到 http://www.example.com/my-contact-form
<希望这有助于......
I'm looking to create a new contact form for enquiries on Magento. Creating a module from scratch for this seems like a bit of a waste of time. Does anyone know the most sensible and quickest way for this to happen?
Thanks!
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...
这篇关于Magento上的多个联系表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!