-
October 26, 2021, 05:42 PM
#8
Junior Member
Thanks for the help, it worked.
Now one more question, I promise that this is the last one .
The actual XML path for the vehicle photo:
<photos>
<photo>
<![CDATA[ https://www.localautosearch.com/file...8647_large.jpg ]]>
</photo>
</photos>
I need to change the above code </photo>, </photos> into <image_url>, one row
<image_url>https://www.localautosearch.com/files/10-2021/ad44/1961-lincoln-continental-convertiblevc-1396898647_large.jpg</image_url>
I guess I need to change this code:
$advert[$xml_field] = $cats_out[$flynax_field];
} elseif ($flynax_field == 'sys_photos') {
$photos = $rlDb->fetch("*", array('Listing_ID' => $listing['ID']), null, null, 'listing_photos');
if ($photos) {
foreach ($photos as $pk => $photo) {
$advert['photos'][]['photo'] = RL_FILES_URL.$photo['Photo'];
}
Can you do it for me?
Thanks!
Last edited by Shane Lake; October 26, 2021 at 05:44 PM.