foreach ($xml->image as $key) olan yeri foreach ($xml->images as $key) olarak değiştirip denermisiniz
Denedim ancak sonuç vermedi hocam, xml yapısı ve kullandığım kodlar bu şekilde. şuanli kodlar ile görsellerde 1 sonuç dönüyor.
<product>
<id>10770</id>
<sku>85787</sku>
<ean></ean>
<categoryId>104</categoryId>
<categoryPath>Ürünler</categoryPath>
<brand></brand>
<title>Ürün Adı</title>
<detail>Açıklama Bölümü </detail>
<stock>20</stock>
<desi>0</desi>
<shippingDay>0</shippingDay>
<currency>TRY</currency>
<salePrice>46.53</salePrice>
<costPrice>46.53</costPrice>
<tax>18</tax>
<images>
<image>
<src>1593.jpg</src>
<attributeLabel></attributeLabel>
<attributeValue></attributeValue>
</image>
<image>
<src>1594.jpg</src>
<attributeLabel></attributeLabel>
<attributeValue></attributeValue>
</image>
</images>
<variants></variants>
<productTexts></productTexts>
<productFiles></productFiles>
</product><?php
set_time_limit(0);
$dosya = simplexml_load_file('files.xml');
foreach($dosya->product as $urun){
// echo $stokkodu = $urun->sku."<br/>";
// echo $katAdi = $urun->categoryPath."<br/>";
// echo $urunadi = $urun->title."<br/>";
// echo $aciklama = $urun->detail."<br/>";
// echo $stok = $urun->stock."<br/>";
// echo $fiyat = $urun->salePrice."<br/>";
foreach($urun->images as $key){
echo $key->image->src;
}
echo "<hr/>";
}
?>