mkelly1, on Apr 11 2007, 11:31 PM, said:
Question - When I go in to edit a product the check box is showing on the buttom. It's text is
"TEXT_PRODUCTS_RSS" with a checkbox at the end.
I unchecked all the products I DID NOT want to show up on the RSS feed and they are still showing up. I double checked to make sure they weren't still checked and they aren't. I'm doing the english version. Any idea's?
Michael
Sure, just open catalog/admin/includes/languages/english/categories.php and find:
define('TEXT_PRODUCTS_WEIGHT', 'Products Weight:');
Add under it:
define('TEXT_PRODUCTS_RSS', 'Add this product to the RSS feed:');
Regarding the unchecked products, verify whether an unchecked / checked checkbox stays unchecked / checked after you've updated / saved the settings of a product. If the checkbox "remembers" its last setting, then your DB and the catalog\admin\categories.php file are working correctly.
In that case you might want to try to replace the following (in rss.php):
$sql = 'SELECT p.products_id, products_model, products_image, products_date_added FROM products p, products_to_categories pc WHERE p.products_id = pc.products_id AND pc.categories_id = \'' . $category . '\' AND products_status=1 ORDER BY RAND() DESC LIMIT ' . MAX_RSS_ARTICLES;
} else {
$sql = 'SELECT products_id, products_model, products_image, products_date_added FROM products WHERE products_status=1 ORDER BY RAND() DESC LIMIT ' . MAX_RSS_ARTICLES;
}
With:
$sql = 'SELECT p.products_id, products_model, products_image, products_date_added FROM products p, products_to_categories pc WHERE p.products_id = pc.products_id AND pc.categories_id = \'' . $category . '\' AND products_status=1 AND products_to_rss=1 ORDER BY RAND() DESC LIMIT ' . MAX_RSS_ARTICLES;
} else {
$sql = 'SELECT products_id, products_model, products_image, products_date_added FROM products WHERE products_status=1 AND products_to_rss=1 ORDER BY RAND() DESC LIMIT ' . MAX_RSS_ARTICLES;
Success!