Jump to content

(SOLVED)Need help with xml file (skroutz module)


tutygr

Recommended Posts

Hi,

I bought this module http://addons.prestashop.com/en/export/1668-skroutz-merchant-exporter.html

It 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

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

  • 11 months later...
  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...