Magento Expert Forum - Improve your Magento experience

Results 1 to 6 of 6

RSS Feed in Magento

  1. #1
    Junior Member jaredovi's Avatar
    Join Date
    Mar 2013
    Posts
    69
    Thanks
    2
    Thanked 11 Times in 8 Posts

    Default RSS Feed in Magento

    More and more retailers are using blogs and RSS feeds to help expand their businesses online presence. However Magento, the worlds leading open source eCommerce package doesnt offer out of the box blog management, so many Magento shop owners are turning to other open-source software like WordPress to help meet their blogging demands. This leaves one thing uncovered, how to display these latest blog posts on a Magento shop homepage to help keep things fresh for SEO.

    In this tutorial I will show you how to add an RSS feed to your Magento shop.

    To start with, you will need to create a phtml file called rss_feed.phtml in the following directory:app/design/frontend/default/your-theme/template/callouts

    In this file you will need to add the following code to call up the RSS feed:

    PHP Code:
    <?php $channel = new Zend_Feed_Rss(http://www.yourfeed.com/news/feed); ?>

    <?php $i 0?>

    <?php foreach ($channel as $item): ?>

    <?php if ($i<3){ ?>

    <?php echo $item->get_date(j F Y); ?>

    <p><?php echo $item->title?>

    <a href="<?php echo $item->link?>">Read post </a></p>

    <?php } else { } ?>

    <?php $i++; ?>

    <?php endforeach; ?>

    You will then need to change the URL to the URL of feed that you have set up in Feedburner.

    Once you have done that you will need to open up thepage.xmlfile inapp/design/frontend/default/your-theme/layout/and then find the block where you would like to add the news feed to.

    Add the following code to thepage.xmlfile:

    HTML Code:
    <block type="core/template" name="latest.news" as="getNews" template="callouts/rss_feed.phtml"/>
    Save this file and upload it with therss_feed.phtmlfile.

    Now you are ready to call the RSS in the main phtml pages and add the following code to the template files where you want the RSS to display:

    PHP Code:
    <?php echo $this->getChildHtml(getNews?>

    Save, upload and then style it up to fit in with your sites design.

    View more threads in the same category:


  2. #2
    Junior Member
    Join Date
    Aug 2014
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    * magento rss feed
    * magento rss feed url
    * magento rss feed link
    * how to add rss feed to your magento site
    * how to add rss widget in magento
    * magento add blog feed to cms

    1. Rss feed need to be activated under System -> Configuration -> Rss feed.

    2. After activating, all RSS you have enabled will be shown on this page

    http://yourdomain/rss

    3. Get the link you needed and put it somewhere on your design.

  3. #3
    New member
    Join Date
    Feb 2015
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is very usefully, thank you!!!
    vrati пощенки кутии

  4. #4
    New member
    Join Date
    Jan 2015
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    I have installed RSS feed reader extension for Magento in my website, it is highly customizable and easy to integrate by anyone since no coding is required.

  5. #5
    Junior Member
    Join Date
    Nov 2015
    Location
    UK
    Posts
    21
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    There must be some extension plugin for RSS feed, it makes job easier

  6. #6
    Junior Member
    Join Date
    Jul 2017
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am looking to learn more about this issue. Thank you for sharing. I will follow this site regularly.
    wings io

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •