Newsletter Signup on CMS page in Magento - magento

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

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

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"}}

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.

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>

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.

Related

magento How to add a block to the bundled product page

I am a newcomer to magento. During the learning process, I want to know how to add a block to the bundled product page. The piece of information I found through google doesn't know what to do with it.
It depends on where you want to put it, and I am assuming that you have a theme setup with a local.xml file, but you could also add that part in the product's edit page in Admin->Manage Products->Edit Product->Design->Custom Layout Update.
The xml, added in app/design/frontend/[your-theme]/[your-subtheme]/layout/local.xml
<PRODUCT_TYPE_bundle>
<reference name="content">
<block name="yourtheme_yoursubtheme_nameofblock" type="core/text" template="path/to/your/template.phtml" />
</reference>
</PRODUCT_TYPE_bundle>
This will add the output of app/design/frontend/[your-theme]/[your-subtheme]/template/path/to/your/template.phtml at the bottom of every bundle-type product page. You may want to read up on Magento Layout XML

Magento static block issue in 1.9.2.2

I just have upgraded my store to latest CE 1.9.2.2 and my static blocks called on home page are not more there.
I tried both ways to implement but in vain.
1) In home page layout update section
<reference name="content">
<block type="catalog/product_list" name="home-popular" template="catalog/product/popular_list.phtml">
<action method="setCategoryId"><category_id>2</category_id></action>
</block>
</reference>
2) In cms content area
{{block type="catalog/product_list" category_id="2" template="catalog/product/popular_list.phtml"}}
I remember we had block cache issue in 1.9.1.x
can you please guide me what could be the issue?
I had the same problem. In that new version the block include in CMS is blocked. You have to set permissions first. That is very very annoying especially if that is your AGB for block for example. You can fix that problem when you go to
System -> Permissions -> Blocks
There you add a new entry named cms/block and set them to Allowed. Then you get your blocks back.
Add catalog/product_list to the System -> Permissions -> Blocks
Block name: catalog/product_list
is Allowed: yes

I want to view my recent Blog post on my footer (Magento)

I am using this extension on Magento
http://www.magentocommerce.com/magento-connect/nblog-blog-extension-by-neotheme.html
My blog page is working fine but i want show the recent 3 posts on my footer.
i am not getting any solution for it.
If any one Know this please help me
Check your app\design\frontend\base\default\layout\neotheme\blog.xml.
Add this code in the <default> tag
<reference name="footer">
<block type="neotheme_blog/widget_post_list" name="blog.latest.posts"/>
</reference>
use the following code in default tag of blog.xml
<block type="neotheme_blog/widget_post_list" after="blog.category.list" name="blog.latest.posts">
<action method="setPostCount"><param>5</param></action>
</block>
where between param tag you can enter any digit. the blog will show the no. of posts accordingly.

Magento Newsletter form not working

I am trying to add a newsletter signup form to my Magento site creativeinfusion.com.au/shop
The problem is that the email address doesn't get added to the subscribers list.
I have tried both of these below in my content block.
{{block type="core/template" template="newsletter/subscribe.phtml"}}
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Neither one adds the subscribers email address to the CMS. I am assuming that the code above is not linking to the correct file?
This code:
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Works great for V-1.7.x.x.
The correct line to add to the cms is the following:
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}}
Because newsletter/subscribe is the correct block. I added it in a clean Magento installation and it worked fine.
What is happening for you? Is the subscription form not showing at all? Is it not posting? Is it not storing the entered email adresses?
Since it works out of the box it sounds like it could be some other module or js/css that interferes with the process.
{{block type="newsletter/subscribe" template="newsletter/subscribe.phtml"}} <- This works for me.

Magento custom theme template file not used 1.6

I have a custom magento template which im trying to tweak and just have a question regarding templates.
Currently the customer login uses the base .phtml file.
So I have created the customer/form/login.phtml file and placed it in my CUSTOM theme folder.
Then in my custom theme folder I went into layouts and and customer.xml. This is where in not sure what I need to do.
I found the following XML code:
<customer_account_login translate="label">
<label>Customer Account Login Form</label>
<!-- Mage_Customer -->
<remove name="right"/>
<remove name="left"/>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="customer/form_login" name="customer_form_login" template="customer/form/login.phtml"/>
</reference>
</customer_account_login>
Im not sure what I need to change with this to make it use my custom login form instead of using the base login form.
At first I thought the system would automatically check to see if the file exists in custom and just apply and if it doesnt exist fall back on base template but that didnt seen to work.
Any help would be appreciated. A noob explanation would also be great!
Thanks for reading
Magento seems to use a login file from:
template/persistent/checkout/onepage/login.phtml
In version 1.6 of Magento.
Edited that and the changes appeared as expected. Sorry but i also just found this post
In Magento 1.6, changes to login.phtml don’t reflect
Mine seems to be a dupe (sorry I didnt come across it when searching before) so feel free to close this one :)

Resources