gantz37 Posted May 20, 2014 Share Posted May 20, 2014 hi does anyone know how to take the variable reference of product to display in rss, and take the price without vat thanks Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 what rss feed module you use? default one? if so, what version ? (exact number) Link to comment Share on other sites More sharing options...
gantz37 Posted May 20, 2014 Author Share Posted May 20, 2014 (edited) 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 May 20, 2014 by gantz37 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 ok thanks so, you want to display "reference" field as a separate value, or as a part of title/description ? Link to comment Share on other sites More sharing options...
gantz37 Posted May 20, 2014 Author Share Posted May 20, 2014 to display in separate value in <reference></reference> Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 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: Link to comment Share on other sites More sharing options...
gantz37 Posted May 20, 2014 Author Share Posted May 20, 2014 (edited) thanks last question how can i get the name of category Edited May 20, 2014 by gantz37 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2014 Share Posted May 20, 2014 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 Link to comment Share on other sites More sharing options...
gantz37 Posted May 20, 2014 Author Share Posted May 20, 2014 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 i dont know how to get name of the category Link to comment Share on other sites More sharing options...
Recommended Posts