Jump to content

[SOLVED] rss feed module


Recommended Posts

what rss feed module you use? default one? if so, what version ? (exact number)

prestashop 1.5.6   default rss feed module v. 0.4

 

I have to change to adapt to this template

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel> 
    <item>
     
      <title></title>
      
      <reference></reference>
      
      <description></description>

      <category></category>

      <price></price>
     
      <link></link>

      <images></images>
     
      <keywords></keywords>

    </item>
  </channel>
</rss>  
Edited by gantz37 (see edit history)
Link to comment
Share on other sites

ok, everything is clear :-) thank you

open file:

 

modules/feeder/rss.php

 

there is a code ike:

echo "\t\t<item>\n";
		echo "\t\t\t<title><![CDATA[".$product['name']." - ".html_entity_decode(Tools::displayPrice(Product::getPriceStatic($product['id_product']), $currency), ENT_COMPAT, 'UTF-8')." ]]></title>\n";

change it to:

echo "\t\t<item>\n";
        echo "\t\t\t<reference>".$product['reference']."</reference>";
		echo "\t\t\t<title><![CDATA[".$product['name']." - ".html_entity_decode(Tools::displayPrice(Product::getPriceStatic($product['id_product']), $currency), ENT_COMPAT, 'UTF-8')." ]]></title>\n";

effect in feed:
rqRmPgX.png

Link to comment
Share on other sites

you're welcome :-)

i marked topic title as solved.

if you will need any additional assistance related to this case - just let me know here :-)

with regards,

Milos

last question :rolleyes:

i dont know how to get name of the category

Link to comment
Share on other sites

×
×
  • Create New...