Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010
    Location
    Northants, England
    Posts
    82
    Plugin Contributions
    0

    Default RSS Feed out of date

    I have been running the RSS Feed for some time on Zen Cart v.1.5.0 and unfortunetly have just noticed it is out of date.
    The date of the RSS feed is from 01/12/2011 and I don't know why.
    I have v 2.1.6 3-2-2012 installed, on my cleanly installed v1.5.0 zen cart.

    Any help would be appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: RSS Feed out of date

    I'm not acquainted with that addon specifically, but I imagine it needs to be able to write updates to certain files.
    And if those files aren't "writable" then maybe it's unable to do its updates properly?
    Or maybe you need to run something on your admin side manually to trigger an update?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Location
    Austria
    Posts
    104
    Plugin Contributions
    6

    Default Re: RSS Feed out of date

    includes/modules/pages/rss_feed/header_php.php

    Find around line 356:
    Code:
    $sql_products = "SELECT DISTINCT p.products_id, pd.products_name, pd.products_description, p.products_image, GREATEST(p.products_date_added, IFNULL(p.products_last_modified, 0)) AS products_date, p.master_categories_id, p.products_price_sorter AS price, p.products_tax_class_id, p.products_quantity, p.products_model, p.products_weight, p.manufacturers_id, m.manufacturers_name, r.reviews_rating
                           FROM " . TABLE_PRODUCTS . " p
    This code returns the products_date wrong,

    so change to:

    Code:
    $sql_products = "SELECT DISTINCT p.products_id, pd.products_name, pd.products_description, p.products_image, p.products_date_added, p.products_last_modified, p.master_categories_id, p.products_price_sorter AS price, p.products_tax_class_id, p.products_quantity, p.products_model, p.products_weight, p.manufacturers_id, m.manufacturers_name, r.reviews_rating
                           FROM " . TABLE_PRODUCTS . " p
    And then change around line 512 from products_date to products_date_added:

    Old:

    Code:
    $rss->rss_feed_item($products->fields['products_name'],
                              $link,
                              array('url' => $link, 'PermaLink' => true),
                              date('r', strtotime($products->fields['products_date'])),
    New:

    Code:
    $rss->rss_feed_item($products->fields['products_name'],
                              $link,
                              array('url' => $link, 'PermaLink' => true),
                              date('r', strtotime($products->fields['products_date_added'])),

 

 

Similar Threads

  1. Replies: 0
    Last Post: 8 Jan 2013, 03:28 AM
  2. RSS Feed
    By stonecoldinc in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 13 Aug 2012, 01:24 PM
  3. rss feed external link in the feed?
    By Kitty in forum General Questions
    Replies: 11
    Last Post: 26 Jan 2008, 09:48 PM
  4. another RSS feed question... try and help me out!
    By christayah in forum General Questions
    Replies: 5
    Last Post: 4 Dec 2007, 12:43 AM

Posting Permissions

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