update
This commit is contained in:
@@ -121,8 +121,14 @@ foreach ($existingXml->xpath('//o') as $offer) {
|
|||||||
['id_x13gpsr_responsible_manufacturer' => $responsibleManufacturerId]
|
['id_x13gpsr_responsible_manufacturer' => $responsibleManufacturerId]
|
||||||
);
|
);
|
||||||
|
|
||||||
$responsibleElement = $offer->addChild('a', "<![CDATA[$manufacturerName]]>");
|
$attrs = $offer->xpath('attrs');
|
||||||
$responsibleElement->addAttribute('name', 'Producent odpowiedzialny');
|
if ($attrs && isset($attrs[0]))
|
||||||
|
{
|
||||||
|
$attrsElement = $attrs[0];
|
||||||
|
$attrElement = $attrsElement->addChild('a');
|
||||||
|
$attrElement->addAttribute('name', 'Producent odpowiedzialny');
|
||||||
|
$attrElement[0] = $manufacturerName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user