点击这里 快速注册 shopify 英文网店 可以获得14天免费试用,注册完成后 您可以设置您的网站,添加您产品,快速预览你的网店 , 开启国际电子商务之旅注册时注意以下几点 1…
February 15, 2016
Magento: 添加first name 和 last name到newsletter Add additional fields to your newsletter form and show a popup for subscription.
1. 首先,自定义添加区域,安装插件 Extended Newsletter Subscription (https://www.magentocommerce.com/magento-connect/extended-newsletter-subscription.html)
下载包:Mediarocks_NewsletterExtended-0.3.5
2. 添加到footer
your theme is located at /app/design/frontend/default/mytemplate/layout/local.xml
<?xml version="1.0"?> <layout version="0.1.0"> <!-- Default layout, loads most of the pages --> <default> <remove name="left.newsletter" /> <!-- if you want to remove the newsletter block which is on the left side --> <!-- Mage_Newsletter --> <reference name="footer"> <block type="newsletter/subscribe" name="newsletter" as="newsletter" template="newsletter/subscribe.phtml" before="-" /> </reference> </default> </layout>
footer.phtml
<?php echo $this->getChildHtml('newsletter'); ?>
OR CMS Page:
{{block type="newsletter/subscribe" name="newsletter" template="newsletter/subscribe.phtml"}}