tutygr Posted February 3, 2011 Share Posted February 3, 2011 Hi,I bought this module http://addons.prestashop.com/en/export/1668-skroutz-merchant-exporter.htmlIt generates a xml feed for a price comparison website (skroutz.gr)It works great. I just need to include the manufacturer of the product in it.This is the part of the php file that i think it needs to be changed. . "".$Product['id_product']."\n" . "<![CDATA[".strip_tags(html_entity_decode($Product['name']))."]]>\n" . "<![CDATA[".$product_path1."]]>\n" . "<![CDATA[".$product_desc1."]]>\n" . "".$Product['reference']."\n"; I tried adding this . "".$Product['manufacturer_name']."\n"; But no luck. I get an error in the BO.I will be paying via Paypal if anyone can help me with it.Thanks.Edit: devsoft nailed it! Thanks! Link to comment Share on other sites More sharing options...
devsoft Posted February 3, 2011 Share Posted February 3, 2011 try."" .Manufacturer::getNameById($Product['id_product'])."\n"; Link to comment Share on other sites More sharing options...
tutygr Posted February 3, 2011 Author Share Posted February 3, 2011 When I try to modify the php file I get "Parse error(s) in module(s)" in the modules area...The code looks like this now: $product_path = strip_tags( $this->getPath($Product['id_category_default']) ); $product_path1 = html_entity_decode( $product_path ,ENT_QUOTES , "iso-8859-7" ); $product_desc = strip_tags( $Product['description_short'] ); $product_desc1 = html_entity_decode( $product_desc ,ENT_QUOTES , "utf-8" ); $items .= "\n" . "".$Product['id_product']."\n" . "<![CDATA[".strip_tags(html_entity_decode($Product['name']))."]]>\n" . "<![CDATA[".$product_path1."]]>\n" . "<![CDATA[".$product_desc1."]]>\n" . "".$Product['reference']."\n"; . "".Manufacturer::getNameById($Product[‘id_product’])."\n"; if (isset($image[0])) $items .= "".'http://'.$domain.$psdir.'img/p/'.$image[0]['id_product'].'-'.$image[0]['id_image'].'-large.jpg'."\n"; $items .= "<link>".$product_link."</link>\n" . Link to comment Share on other sites More sharing options...
devsoft Posted February 3, 2011 Share Posted February 3, 2011 this one sholud wrok. ”” . Manufacturer::getNameById($Product[‘id_manufacturer’]) . ”\n”; Link to comment Share on other sites More sharing options...
devsoft Posted February 3, 2011 Share Posted February 3, 2011 remove ; after "\n"; Link to comment Share on other sites More sharing options...
tutygr Posted February 3, 2011 Author Share Posted February 3, 2011 Edit:removed the ; and still nothing.Updated:Maybe something else... it wont let be edit anything in that file without showing me the errorStill getting "Parse error(s) in module(s)" Link to comment Share on other sites More sharing options...
devsoft Posted February 3, 2011 Share Posted February 3, 2011 this works. "".$Product['reference']."\n". "".Manufacturer::getNameById($Product['id_manufacturer']) ."\n";just type yourself don't copy past use yours brackets Link to comment Share on other sites More sharing options...
tutygr Posted February 3, 2011 Author Share Posted February 3, 2011 That's awesome! Thank you very much devsoft! Edit: Perfect now!Thanks again! Link to comment Share on other sites More sharing options...
oschellas Posted January 4, 2012 Share Posted January 4, 2012 Updated XML feeds for Skroutz.gr, 4uthesite.com, bestprice.gr, openstore.gr and ricardo.gr at webit.bz, more info Link to comment Share on other sites More sharing options...
Eddie Greece Posted February 17, 2012 Share Posted February 17, 2012 I bought the module but when i create the xml does not have all the products. Is there anything specific why some products does not appear in the xml file? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now