Domain Manage

aff window product feed

Discussion in 'Affiliate Marketing' started by theonemanyuri, Jun 26, 2010.

Thread Status:
Not open for further replies.
  1. theonemanyuri

    theonemanyuri Active Member

    Joined:
    Jun 2010
    Posts:
    556
    Likes Received:
    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
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
     
  3. admin Spain

    admin Administrator Staff Member

    Joined:
    Jun 2004
    Posts:
    10,083
    Likes Received:
    115
    I've never tried it like that, I usually pull the feed into a database and then read the fields / data from the database into a PHP page.

    If you can send me the XML file I will have a look with you.

    Admin
     
  4. monaghan United Kingdom

    monaghan Moderator Staff Member

    Joined:
    May 2007
    Posts:
    1,993
    Likes Received:
    45
    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.
     
  5. theonemanyuri

    theonemanyuri Active Member

    Joined:
    Jun 2010
    Posts:
    556
    Likes Received:
    2
    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
     
  6. theonemanyuri

    theonemanyuri Active Member

    Joined:
    Jun 2010
    Posts:
    556
    Likes Received:
    2
Thread Status:
Not open for further replies.

Share This Page