cancel
Showing results for 
Search instead for 
Did you mean: 

RSS feeds are empty

RSS feeds are empty

I have activated RSS feeds on Magento ver. 2.4.3-p1. When I click the RSS link https://www.mystore.com/rss/ I see the links for the RSS feeds of the Main Categories. When I click any of those links, I get an XML empty of products like the following:

 

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Embrayages, Cloches</title>
    <description>Embrayages, Cloches</description>
    <generator>Laminas_Feed_Writer 2 (https://getlaminas.org)</generator>
    <link>https://www.mystore.com/embrayages-cloches.html</link>
  </channel>
</rss>

Of course, if I visit the category link (e.g. https://www.mystore.com/embrayages-cloches.html) I see products.

1 REPLY 1

Re: RSS feeds are empty

I guide you on how do you add all products in RSS feeds. I hope you have basic experience in Magento 2 module creation.

- Add all product configuration
Current, Catalog configuration comes from the below file

vendor/magento/module-catalog/etc/adminhtml/system.xml
- You can check here $type parameter in this file which passes RSS feeds slug for example "new-products" so you have to pass for "all-product" something like that you have to define in system.xml

vendor/magento/module-rss/Controller/Feed/Index.php
- New product collection comes from this file so you have to copy that file in your module and

$this->rssModel->getProductsCollection

this parameter get all product collection with a filter so you have to just copy that file and remove the date filter

vendor/magento/module-catalog/Block/Rss/Product/NewProducts.php
vendor/magento/module-catalog/Model/Rss/Product/NewProducts.php

If issue solved, Click Kudos & Accept as Solution.
LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool