Skip to content

Magento 2 : Customize New Products Rss Feed

Generally when we hit http://127.0.0.1/magento2/rss/feed/index/type/new_products/
Feed shows data in XML format like this :

<rss xmlns:slash="http://purl.org/rss/1.0/modules/slash/" version="2.0">
   <channel>
   <language>en_US</language>
   <title>New Products from Main Website Store</title>
   <description>New Products from Main Website Store</description>
   <generator>Laminas_Feed_Writer 2 (https://getlaminas.org)</generator>
   <link>http://127.0.0.1/magento2/rss/feed/index/store_id/1/type/new_products/</link>
   <item>
     <title>Simple Door</title>
     <description>
        <![CDATA[ <table><tr> <td><a href="http://127.0.0.1/magento2/simple-door.html"> 
      <img src="http://127.0.0.1/magento2/pub/static/version1696945400/frontend/Magento/luma/en_US/Magento_Catalog/images/product/placeholder/thumbnail.jpg" border="0" align="left" height="75" width="75"></a></td> <td style="text-decoration:none;"> <div class="price-box price-final_price" data-role="priceBox" data-product-id="45" data-price-box="product-id-45"> <span class="price-container price-final_price&#x20;tax&#x20;weee" > <span id="product-price-45" data-price-amount="0" data-price-type="finalPrice" class="price-wrapper " ><span class="price">$0.00</span></span> </span> </div></td> </tr></table> ]]>
    </description>
    <link>http://127.0.0.1/magento2/simple-door.html</link>
    <guid>http://127.0.0.1/magento2/simple-door.html</guid>
    <slash:comments>0</slash:comments>
    </item>
 </channel>
</rss>

Now, my query is, I want to add new tag weight and sku after description tag. So how can I do that?