• Welcome to AcornDomains.co.uk, a friendly community for UK domain investors, developers and anyone interested in domain names.

    Whether you're looking to buy or sell domains, learn more about the UK domain market, get feedback on your names, or simply chat with other domainers, you're in the right place. AcornDomains has been bringing together people from across the UK domain industry for many years, from complete beginners to experienced investors.

    Have a look around, join the discussions and, if you haven't already, create a free account and introduce yourself.

aff window product feed

Status
Not open for further replies.
Joined
Jun 1, 2010
Posts
548
Reaction score
2
I'm trying to put a data feed on a site from affiliate window, but can't get it to work..?

I'm just making a quick site in sitespinner does anyone know how to put it on? I've downloaded the .xml file but it doesn't display correctly if I embed it in the page
 
I've downloaded the .xml file but it doesn't display correctly if I embed it in the page

You'll need to pull the desired data from the XML, you can't just embed an XML feed into an HTML page.

A simple for loop using PHP's SimpleXML library would probably be the simplest option for a small feed, bigger feeds that will span several pages might be better off from a local store, either build cached product specific pages or filter into a database (you'd need to run a few tests to see which performed quickest for your environment.)

Alternatively, if you did want to render just the XML file, then you could build an XSLT to pull the data into an XML format.
 
admin - cheers, I'll send the xml file as soon as I get home from work, much appreciated!

monaghan - I thought it wouldn't work as sitemaps are xml, but I didn't know any other way of even trying it. I just wanted a simple, quick store to bang on my website to maybe earn a few pennies, I never relised how complicated it was! I'll look into simpleXML
 
Status
Not open for further replies.
Top Bottom