Quote Originally Posted by chain_man View Post
OK - I got this working the way it's supposed to.

Caveat: The changes I made pertain only to my system. The suggestions may lead others to solve some relatively obscure problems, though.

The root of my problem seemed to be that I have Wordpress integrated into my zen cart, causing me to need 'amp;' prepended to the 'feed=' part of the URL, or else I get invalid page errors. This makes my feed URL look something like:
"?main_page=rss_feed&feed=featured" instead of the stock "?main_page=rss_feed&feed=featured". (Many thanks to bigjoeed, who posted this discovery on this thread several months ago.)

The biggest hint that the $feed variable was not populated correctly was that the title of the various feeds that did appear always had mystoredomain:RSS Feed, the generic title. Other stores with feeds had the type of feed included in the title, like mystoredomain:RSS Featured Feed. As this value is loaded based on the feed value, I decided the feed value was not being loaded correctly.

So I had to change $feed = $_GET['feed']; to $feed = $_GET['amp;feed']; and change $feed_args = substr($feed, $i+1); to $feed_args = substr($feed, $i+5); near the top of extra_functions/rss_feed.php.

Then I had to change switch($_GET["feed"]) to switch($_GET["amp;feed"]) (about line 128) of pages/rss_feed/header_php.php.

These changes got the $feed variable capturing the right values.

But I still could not get 'specials' to process the correct items. What I found was that the program could recognize 'special' but not 'specials' for some reason. So I had to change any place that $feed='specials' occurred to $feed='special' in pages/rss_feed/header_php.php. And add case='special' to the switch statement just below case='specials' in extra_functions/rss_feed.php. (This allows both 'special' and 'specials' to remain in the code).

Your mileage may vary...
Thank you, Doug, for figuring this out. I am also having an issue with this mod conflicting with WordPress. When I click on the RSS button in my footer it pulls up the feed to my blog instead of my products. [I know you said this only pertained to your system, but I tried everything else with no luck so I decided to try your suggestions.]

I've got a working feed (http://www.queerrepublictees.com/ind...;feed=products) but the problem is I can't get the RSS button to point to it.

I've done exactly what you did:
  • changed $feed = $_GET['feed'] to $feed = $_GET['amp;feed']
  • changed $feed_args = substr($feed, $i+1) to $feed_args = substr($feed, $i+5)
  • changed switch($_GET["feed"]) to switch($_GET["amp;feed"])


... but it's still bringing up the blog instead of the products.
The confusing part is when I hover over the RSS button, in the bottom of my browser I can see:
http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products

but if I select the button and look at the source code it points to the correct URL:
http://www.queerrepublictees.com/index.php?main_page=rss_feed&feed=products

There's got to be something really simple that I am overlooking. If anybody can help I'd be most grateful.