Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add RSS Feed to Information Box


pchem

Recommended Posts

I recently added FWR's RSS 2.0 Products Feed and wanted a neat location to place the RSS link and icon. I decided on placing it in the info box as follows:

 

To catalog/includes/boxes/information.php about line 23 and under $info_box_contents[] = array('text' => I added:

'<a href="' . tep_href_link(FILENAME_RSS_FEED) . '">' . BOX_INFORMATION_RSS_FEED . '</a>');

and made it the last item in the box.

 

In catalog/includes/filenames.php at about line 50 I added:

define('FILENAME_RSS_FEED', 'fwrrss.xml');

 

In catalog/includes/languages/english.php at about line 130 under // information box text in includes/boxes/information.php I added:

define('BOX_INFORMATION_RSS_FEED', 'RSS Feed <img src="images/feed_icon.gif" border=0>');

 

I got an image from RSS Button Maker here. I named the image feed_icon.gif and uploaded it to catalog/images.

Link to comment
Share on other sites

  • 1 year later...

I recently added FWR's RSS 2.0 Products Feed and wanted a neat location to place the RSS link and icon. I decided on placing it in the info box as follows:

 

To catalog/includes/boxes/information.php about line 23 and under $info_box_contents[] = array('text' => I added:

'<a href="' . tep_href_link(FILENAME_RSS_FEED) . '">' . BOX_INFORMATION_RSS_FEED . '</a>');

and made it the last item in the box.

 

In catalog/includes/filenames.php at about line 50 I added:

define('FILENAME_RSS_FEED', 'fwrrss.xml');

 

In catalog/includes/languages/english.php at about line 130 under // information box text in includes/boxes/information.php I added:

define('BOX_INFORMATION_RSS_FEED', 'RSS Feed <img src="images/feed_icon.gif" border=0>');

 

I got an image from RSS Button Maker here. I named the image feed_icon.gif and uploaded it to catalog/images.

 

I hope this works because I'm about to try it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...