Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  RSS Feed 0.1

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
From php 5.2 the function ereg() is deprecated. Using 2.2a my server reported this error several time.

To fix it replace on line 266

if(ereg('HTTP_(.+)',$h,$hp)){

with

if(preg_match('/HTTP_(.+)/',$h,$hp)){

I also noticed the feed was not valid because the string
<?xml version="1.0" encoding="UTF-8" ?>
is not generated on the top of the rss file

If you notice that remove this line 306-307:

echo '<?xml version="1.0" encoding="UTF-8" ?>' . "n";

echo '<?xml-stylesheet href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"?>' . "n";

Also on line 328 remove the © carachter from the <copyright> tag

Attached the modified file

RSS Feed v2.2a - Add Manufacturer, Model #, Price + More to Feed

This is an update for RSS Feed v2.2 by faaliyet (23- Mar- 2009).

You must download and install RSS Feed v2.2 first.
This is not full package.
Only contains manual install Instructions and rss.php file.

v2.2a Changes:
--------------------------
-Added Manufacturer, Model # and Price to feed items (you can use all, or comment out the ones you don't want).
- Based on how Newegg.com feeds look.
- Price will display either regular price or special price (if it is on special).
- Currently all is hard-coded in rss.php file so no external "defines". You can change that if you want
but I felt unnecessary at this time .
- Also, Prices: Sorry, since my my store is only in dollars I have not included code for multi-currency stores. (hard-coded)
-Added Screenshot to see what it will look like.
-Added <copyright> </copyright> channel element (to of course display your copyright info).
-Added <width> </width><height></height> channel elements so as to make the store logo a clickable link to website

-Updated: Commented out <atom:link href....... rel="self"> tag because it was (again causing problems with the rss feed renderings in IE and Firefox [at least for me]).
Included in install file is an explaination and possible temporary fix. But, this is not really needed (do a Google search on "Missing atom:link with rel="self"
and see what I mean. http://beta.feedvalidator.org/ Feed Validator only suggests as "Recommendation" and removal doesn't invalidate feed anyway.
This tag was working for me a few months ago, but not anymore maybe related to php upgrade to PHP version 5.2.95.2.9 on my server - YMMV.

Issues Un-Resolved (since v2.2):
---------------------------------------
- atom:link href as listed above.
- still a problem with &nbsp; and ereg tags in the descriptions
- Top Category feeds not displaying when Top category has sub-categories (sub-categories show fine).
Example:
Category 1 ===> displays fine
Category 2 ===> DOESN'T DISPLAY
L Sub-Category 1 ===> displays fine
L Sub-Category 2 ===> displays fine
Category 3 ===> displays fine

NOTE: Not full package, replacement rss.php included to use if you haven't already modified the original.

ALSO: Just finished working on RSS feed for Specials and Featured Products (I'll upload soon)

Thanx to faaliyet for all his work on this contribution!
Apply this "If!!! only if" you have this error:

#1062 - Duplicate entry '80' for key 'PRIMARY'
....

On questions that are asked to me this error is seem.id has been used as 80(id=80) that is the reason of it.
It means there is an other contribution that uses id 80.
If you have an error like that use the sql query down below.

insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) values ('888', 'RSS Articles', 'MAX_RSS_ARTICLES', '20', 'Number of articles displayed by the RSS feed', '3', '25', 'now()', 'now()', NULL, NULL);
ALTER TABLE products ADD products_to_rss TINYINT default '1' NOT NULL;

------------------------------------------------------------------------------

no file.
Seyhun Cavus(faaliyet)
RSS Feed v2.2 - FullPackage

v2.2 Changes:
------------------
-Added a file to upgrade from v2.1 to v2.2
-Added Screenshots (folder)
-Created History folder
-Cleared/Edited History Logs
-Added History Logs for the following RSS Feed v2.0
-Install.txt file is edited for v2.2

What's in v2.2 ?
---------------------
+RSS v2.1
+Small fix for v2.1 (chrish123's update)
+Adding both Category and Manufacturers Filtering(the bookworm's update)
+RSS Quick-set button in product listing(Jammerious's update)
+Small update for RSS links in index.php (my update)

Seyhun Cavus (faaliyet)
Small Fix for links
------------------------
-Open index.php file
------------------------------------------------------------------------------------------------
Find:
$rss_params = '&manufacturers_id='.(int)$HTTP_GET_VARS['manufacturers_id'];

Replace with:
$rss_params = '&amp;manufacturers_id='.(int)$HTTP_GET_VARS['manufacturers_id'];
------------------------------------------------------------------------------------------------
Find:
$rss_params .= '&filter_id='.(int)$HTTP_GET_VARS['filter_id'];

Replace with:
$rss_params .= '&amp;filter_id='.(int)$HTTP_GET_VARS['filter_id'];
------------------------------------------------------------------------------------------------
Find:
$rss_params = '&cPath='.$cPath;

Replace with:
$rss_params = '&amp;cPath='.$cPath;
------------------------------------------------------------------------------------------------

-no file.

Seyhun Cavus (faaliyet)
This is a small mod that adds an option to the product listing which makes it possible
to quickly change the RSS status of a product. In the same manner as setting it on or off stock/availability.

Screenshot: http://www.shrani.si/f/a/LD/3Szw8hOW/oscrssmod1.png

Instructions included.
This is a slight modification of step 6 of the install process enabling the correct filtered feed to be auto detected by the browser.
so the feed detected by the browser will be the same as feed offered by the rss button at the bottom of the content

replace step 6 in the install instructions with this

-------------
STEP 6 (Modified)
-------------
Open all the php files within the catalog folder / root of your website (e.g. index.php, contact_us.php etc):


###Add before / above the </head> tag:

<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
include_once(DIR_WS_CLASSES . 'language.php');
$lng = new language;
}

reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
?>
<link rel="alternate" type="application/rss+xml" title="<?php echo STORE_NAME . ' - ' . BOX_INFORMATION_RSS; ?>" href="<?php echo FILENAME_RSS, '?language=' . $key.((isset($_GET['cPath']))?'&amp;cPath='.$_GET['cPath']:'').((isset($_GET['manufacturers_id']))?'&amp;manufacturers_id='.$_GET['manufacturers_id']:''); ?>">
<?php
}
?>
Although theres still a problem with &nbsp; and ereg tags in the descriptions everything is fine, except I kept getting a feed error only on the category specific feed.

The error looked like this:


Internet Explorer cannot display this feed

This feed contains code errors.
Go back to the previous page.

More information

A semi colon character was expected.
Line: 12 Character: 68

<atom:link href="http://mysite.com/rss.php?language=&cPath=144" rel="self" type="application/rss+xml" />

I fixed it by:

Opening catalog/rss.php and find at line 318:

<atom:link href="<?php echo tep_href_link(FILENAME_RSS, $_SERVER['QUERY_STRING'], 'NONSSL', false ); ?>" rel="self" type="application/rss+xml" />

Replace with:

<atom:link href="<?php echo tep_href_link(FILENAME_RSS, $_SERVER['QUERY_STRING'] = str_replace('&','&amp;',$_SERVER['QUERY_STRING']), 'NONSSL', false ); ?>" rel="self" type="application/rss+xml" />
-added getallheaders() fix by ereligare
-fixed self path link error
-fixed the token error when a description had an ampersand character in it.
-fixed dates to have a leading zero to validate correctly.
-added real name to email address for validation
-fixed images path, it had two /'s in it
-added update guides
-added update guide 1.2 to docs by faaliyet

complete package + Update Guides
   Posted on: 12/08/2008     See contribution details Request Installation with Paid service