Jump to content

[SOLVED] RSS Feed Home Category only?


Recommended Posts

Hi

 

I'm trying to configure the PS 1.6x RSS products feed.

 

Does the RSS feed have to be linked to products in the 'Home' category only, to show up on the feed?

 

I think as I don't have any products in the 'Home' category (as they are all sub categories), nothing is showing at all in the RSS feed?

 

I've tried this http://www.prestashop.com/forums/topic/326743-ps-16-new-products-rss-feed/ but still nothing.

 

All I really want is New products (that are not in the 'Home' category) to show).

Many thanks

 

dbg

 

 

Link to comment
Share on other sites

in rss.php file you can change

$products = Product::getProducts((int)Context::getContext()->language->id, 0, ($number > 10 ? 10 : $number), $orderBy, $orderWay, $id_category, true);

to

$products = Product::getNewProducts((int)Context::getContext()->language->id, 0, ($number > 10 ? 10 : $number), false, $orderBy, $orderWay);
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...