how to fetch data feeds from other affiliates?

5 years 4 months ago #2739 by mackelito

You need to create your own "myaffiliate_cb" for each affiliate...
This is where you will extract, remove, rename etc etc...

Learn how to do that here: www.affiliatefeeds.nl/en/47-datafeeds/3098-callbacks.html :)



  • Posts: 174
  • Karma: 3
  • Thank you received: 4

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    5 years 4 months ago #2740 by kishoremnk

    ok but you already developed one for CJ, right, could you please provide me that so that I can get a idea after viewing the code.

    Thanks



  • Posts: 4
  • Thank you received:

  • Gender: Unknown
  • Birthdate: Unknown
  • Please Log in to join the conversation.

    5 years 4 months ago #2741 by mackelito

    The one I have is for a client and I cannot give it away.. I dont think you will have much use of it anyways.. it's very specific for this site :)



  • Posts: 174
  • Karma: 3
  • Thank you received: 4

  • Gender: Unknown
  • Birthdate: Unknown
  • The following user(s) said Thank You: bram

    Please Log in to join the conversation.

    5 years 4 months ago #2742 by bram

    Hi,

    the parser and the callback function are two steps in the import process.

    The parser reads the feed line by line, thus item by item.

    Then the item should go thru the callback function generic_cb, this funcion maps the fields in the item from the feed to the fields in the database based on the mapping on the right of the feed configuration. You use a different function to manipulate the data.

    Back to the parser.
    the component can handle almost any CSV formatted feed with a a header row, these is where you use the CSV parsers.
    Some network have XML formatted feeds as well, since all XML files are different each format needs a different parser, the component includes parsers for some (dutch/european) networks.

    Using CSV is far more efficient.

    CJ : www.affiliatefeeds.nl/en/47-datafeeds/30...t-export-joomla.html

    share-a-sale: affiliatefeeds.nl/articles/11-feed-impor...le-productfeeds.html

    google : www.affiliatefeeds.nl/en/47-datafeeds/31...filiate-network.html



  • Posts: 1494
  • Karma: 57
  • Thank you received: 247

  • Gender: Unknown
  • Birthdate: Unknown
  • The following user(s) said Thank You: kishoremnk

    Please Log in to join the conversation.

    Time to create page: 0.048 seconds
    Powered by Kunena Forum