Newsletter Signup on CMS page in Magento

前端 未结 5 1512
长情又很酷
长情又很酷 2021-02-07 12:00

How can I add Magento\'s default newsletter signup module within a CMS page? Thanks

相关标签:
5条回答
  • 2021-02-07 12:21

    My configurations

    Check out the image attached above, it worked for me. I went to home page's design tab, and added those lines in "Page Layout".

    <block type="newsletter/subscribe" name="home.footer.newsletter" template="newsletter/subscribe-mini.phtml" />
    

    as you can see those lines in the image too.

    0 讨论(0)
  • 2021-02-07 12:38

    The mentioned code adds a signup form to a CMS page, but it was non-working for me.

    Changing the block type to newsletter/subscribe fixed that. So working code for me was:

    {{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
    
    0 讨论(0)
  • 2021-02-07 12:44

    Real answer has been added already,

    {{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
    

    but it does not work for some people (on newer versions of Magento). The reason for this, most likely, are block permissions. The block (newsletter/subscribe) is not allowed on frontend by default. Go to

    System > Permissions > Blocks
    

    and enable it.

    0 讨论(0)
  • 2021-02-07 12:45

    found it.

    {{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
    
    0 讨论(0)
  • 2021-02-07 12:47

    Use this in the layout update section of the specific page you want to change.

    <reference name="right">
        <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
    </reference>
    
    0 讨论(0)
提交回复
热议问题