Data Feed and Campaign Monitor

barkerybarkery Member
in Help edited June 2008
I am trying to setup FC's Data Feed and Campaign Monitor to send my customers information to CM to do email lists.

What I've Done:

1. I've setup CM and have all of the necessary API's
2. I've enable data feed in FC and created the key
3. I've uploaded the .php file with the code found on the WIKI http://wiki.foxycart.com/integration:campaign_monitor
4. I've put my store into test mode and completed a transaction

What I've Found:

1. The transaction goes through, but when I check the error log I get this:
DataFeed Failed: (50730) 2008-06-02 19:53:24 2008-06-02 19:53:24
URL: https://www.foxycart.com/datafeed.php
Agent: Wget/1.10.2 (Red Hat modified)
2. Nothing changes in my CM account


What am I missing?
Comments
  • lukeluke FoxyCart Team
    Hey Barkery. That's the code we're using ourselves... since we eat our own dog food. Something else might be going on. For some reason the script on your server is not returning a single "foxy". Are there any extra carriage returns / line feeds / white space being returned in your script? Have you tried testing your script using the sample XML Datafeed?

    In the code it's pulling from the $_POST, decrypting it and sending it along... if you want to test things, you can just take the example datafeed and throw that into a variable and use it directly to ensure it prints out "foxy" as expected.

    Also, you did update the following entries, right?
    // Foxy Stuff
    $DataFeedKey = 'this is your foxy cart data feed key'; // your foxy cart datafeed key
    // Campaign Monitor Stuff
    $APIKey = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; //your apikey
    $ListID = "XXXXXXX";	//your list ID
    

    Please let us know if there's anything we can do to make things more user-friendly.
Sign In or Register to comment.