Magento 上的多个联系表 [英] Multiple Contact Forms on Magento

查看:22
本文介绍了Magento 上的多个联系表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望创建一个新的联系表单,用于查询 Magento.为此从头开始创建一个模块似乎有点浪费时间.有没有人知道发生这种情况的最明智、最快捷的方法?

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?

谢谢!

推荐答案

In CMS>Manage Pages 创建并启用新页面(或者您可以使用静态块)例如使用 my-contact-form 的 url ID 和与您的主题匹配的布局调用页面我的联系表单.为新页面的内容添加

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'}}

现在在您的模板文件夹中(Magento 1.3.x 中默认主题的 app/design/frontend/default/default/template/contacts)复制现有的 form.phtml 文件,将其重命名为 mycontactform.phtml 并将其复制回联系人文件夹.根据需要编辑新的 mycontactform.phtml 代码和 html,以创建新的联系表单.

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.

转到 http://www.example.com/my-contact 加载新表单-表格

希望有帮助...

这篇关于Magento 上的多个联系表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆