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

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

问题描述

我正在寻找创建一个新的联系表格来查询Magento。从头开始创建一个模块似乎有点浪费时间。有人知道最明智和最快捷的方式吗?



谢谢!

解决方案管理页面创建并启用一个新页面(或者你可以使用一个静态块)例如使用我的联系人表单的网址ID和与您的主题相匹配的布局呼叫我的联系人表单。对于新页面的内容添加

  {{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屋!

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