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)

Magento: 添加first name 和 last name到newsletter Add additional fields to your newsletter form and show a popup for subscription.
Magento: 添加first name 和 last name到newsletter Add additional fields to your newsletter form and show a popup for subscription.

 

下载包: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"}}

 

本文:Magento: 添加first name 和 last name到newsletter Add additional fields to your newsletter form and show a popup for subscription.

Loading

Add a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.