RomanCart.com Forum Homepage
Forum Home Forum Home > RomanCart > Integration
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

XML Callback with PHP

 Post Reply Post Reply
Author
Message
DrGonzo1208 View Drop Down
Newbie
Newbie


Joined: 22 October 2012
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote DrGonzo1208 Quote  Post ReplyReply Direct Link To This Post Topic: XML Callback with PHP
    Posted: 23 October 2012 at 7:48am
Hi all,

I've been trying to get the order details from the ROMANCARTXML post data that is sent invisibly on completion, using PHP. After lots of testing, stressing and pure bewilderment, I finally noticed that I wasn't seeing any errors or getting any data because all the output (including correctly/working echoed variables) were going straight to the RomanCart XML Callback log and not the browser!! Even if I just used the very simple test code (shown below), it would still produce a blank screen and the latest log entry would contain the orderid value in the 'errors' column (with no errors or anything else). It's like the RomanCart log is stealing and clearing my output!!


Test Code:

<?php
$source = $_POST['ROMANCARTXML'];
$source = stripslashes($source);
$xml = simplexml_load_string($source);
echo $xml->orderid[0];
?>


Roman cart support have been worse than useless and there appears to be absolutely no documentation on this, so I'm really hoping someone here has successfully used the XML call back function with PHP and can point me in the right direction?

Any help or ideas really would be massively appreciated!            
Back to Top
Support View Drop Down
RomanCart Team
RomanCart Team


Joined: 16 March 2004
Location: United Kingdom
Status: Offline
Points: 10803
Post Options Post Options   Thanks (0) Thanks(0)   Quote Support Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2012 at 8:31am
hi,
An xml callback is something which happens in the background and not something you would see output from.
If successful you should make sure that your script returns the value 'OK' and nothing else.
If it returns anything else then the system will assume it has errored and your output will show up in the error log.

XML callbacks are used to trigger things on your side. For example you might use it to populate your database or send an email, however it is not something that the customer would see.

Many Thanks
Support
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.040 seconds.