Add Newsletter subscriber form in footer
1. Go to app/design/frontend/default/your_theme/layout/
open newsletter.xml
you will see code block like this :
...
<default>
<!-- Mage_Newsletter -->
<reference name="left">
<block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
</default>
...
2. Add following code there like this :
...
<default>
<!-- Mage_Newsletter -->
<reference name="footer">
<block type="newsletter/subscribe" name="footer.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
</default>
...
3. Now Go to app/design/frontend/default/your_theme/template/page/html/
and open footer.phtml
then add the following code :
<?php echo $this->getChildHtml('footer.newsletter'); ?>
4. Done.
Add Newsletter subscriber form in header
5. Repeat step 1 to open newsletter.xml
file.
6 . Add following code there like this :
...
<default>
<!-- Mage_Newsletter -->
<reference name="header">
<block type="newsletter/subscribe" name="header.newsletter" template="newsletter/subscribe.phtml"/>
</reference>
</default>
...
7. Now Go to app/design/frontend/default/your_theme/template/page/html/
and open header.phtml
then add the following code :
<?php echo $this->getChildHtml('header.newsletter'); ?>
8. Done.
OR
Add newsletter form using direct call in any block
Just copy and paste the following code in any .phtml extention file.
<?php echo $this->getLayout()->createBlock('newsletter/subscribe')->setTemplate('newsletter/subscribe.phtml')->toHtml(); ?>
Enjoy.
来源:http://jagdeepbanga.com/blog/magento-how-to-move-add-newsletter-subscribe-form-to-footer-header.html
分享到:
相关推荐
- **简介**:虽然域名中含有Magento字样,但该网站同样提供了关于ZenCart的交流平台,尤其适合那些同时关注这两种系统的用户。 - **特色**:涵盖ZenCart与Magento两种系统的比较分析、案例分享等内容。 - **论坛四...
Athlete Magento主题,兼容Magento 1.9.x, 1.8.x, 1.7.x ,特点:完全自适应(响应式布局),自定义子主题,无限颜色,完全自定义,一键安装演示,小工具化横幅系统,颜色选择,MEGA菜单,多商店支持,自定义产品...
$ modgit add epicomtech_magento https://github.com/epicomtech/magento.git Antes deComeçar Epicom的API协议 通过电子邮件联系API,电子邮件地址: Conhecendo omódulo 1-哈比利安多·莫杜洛(MHub) ...
适应于 magento1.9.x ================================== 分类的网址达到短路径: http://local.router-switch.com/Price-cisco-router-cisco-router-1900-series_c11 普通搜索 ... 高级搜索 ...对路径都做到短路径,对...
Turiknox URL重写导入器概述一个简单的Magento模块,将允许您使用CSV文件将自定义URL重写导入管理员。要求Magento 2.1.x安装n 将模块的内容复制到您的Magento根目录中。 通过命令行启用模块: / path / to / ...
通过SFTP或SSH导航到Magento [Magento]/app/code/ 。 上载带有扩展名的Dropday/OrderAutomation目录。 打开终端并导航到Magento根目录。 运行以下命令以启用Dropday扩展: php bin/magento module:enable Dropday_...
Magento 2模块,将允许您将滑块添加到主页。 特征 滑块利用FlexSlider( ): 启用/禁用滑块的能力 要求 Magento 2.1.x 安装 将模块的内容复制到您的Magento根目录中。 通过命令行启用模块: / path / to / ...
如何安装bin/magento maintenance:enablerm -rf app/code/Justuno/Jumagextrm -rf composer.lockcomposer clear-cachecomposer require justuno.com/m2:*bin/magento setup:upgradebin/magento cache:enablerm -rf ...
安装此demo 需基本了解magento模块原理 如要重新加载数据库脚本 需删除对应的资源数据 安装完成后请直接访问 http://你的网址/demoeav 1.eav模型 会生成 blog_post, blog_post_char, blog_post_datetime, blog_...
Magento 与 Apache OFBiz 集成,兼容 OFBiz-13.07 和主干 在 Apache OFBiz-13.07 和 OFBiz 主干中使用磁电机组件的步骤 启动终端并进入 Apache OFBiz 的主目录 在热部署文件夹中签出 magento 组件 使用命令加载数据...
Magento是一款强大的开源电子商务平台,以其高度可定制性和丰富的功能特性深受开发者和商家喜爱。在管理大量产品时,手动上传和编辑每个产品的信息可能会非常耗时且效率低下。因此,了解如何在Magento中批量上传产品...
- 在浏览器中访问`http://localhost/magento/`进行安装。 - **配置页面**: - 输入数据库用户名(通常是`magento`)。 - 输入数据库密码。 - 表名前缀留空。 - 遇到错误提示"Please enter a valid URL. Protocol ...
Magento是一款强大的开源电子商务平台,以其高度可定制性和灵活性著称。在Magento的后台管理系统中,管理员可以进行商品的创建、编辑、管理等操作。然而,原生的Magento系统并未提供直接在后台预览商品前端展示效果...
价值80美金的国外专业模板,免费下载: 模板演示: http://themeforest.net/item/metro-responsive-magento-theme/full_screen_preview/3614985 包括安装说明
如何给产品描述里的关键字、字词批量添加链接?我想大家一直在的这样的...并支持到Magento1.6.2 说明请查看:http://www.hicoogle.com/magento-gei-chan-pin-miao-shu-guan-jian-zi-pi-liang-lian-jie-cha-jian.html
...本篇文档将详细介绍整个搭建过程,包括所需软件的获取、安装步骤以及可能...这个环境可以用于开发和测试基于PHP的Web应用程序,如WordPress、Drupal或Magento等。同时,记得定期更新这些组件,以保持安全性和兼容性。
Jbh 路由器,您在 Magento 上的路由用它静态网址网址: http://example.org/foo.hmtl : http://example.org/foo.hmtl 匹配: http://example.org/foo/index/index : ...< jbh> < my> < type>static</ type> < route>foo...
### Magento新手指南知识点详解 #### 一、Magento简介与特性 **Magento**是一款功能强大的开源电子商务平台,由Varien公司(后被Adobe收购)于2008年首次发布。它以其灵活性、可扩展性和丰富的功能集而闻名,是...
Magento Python API 用于连接到Magento Web服务的Python库。 用法 import magento url = 'http://domain.com/' apiuser = 'user' apipass = 'password' # Create an instance of API client = magento . API ( url ...
UNL Magento 模块 使用这些模块和主题来托管服务。 它们提供前端的外观和后端的功能,以支持分布式记帐和对帐。 Unl_Core模块的大部分内容都包含核心 Magento 覆盖,以修复鲜为人知的 Magento 怪癖。 安装 这些安装...