![]() |
XML Callback with PHP |
Post Reply
|
| Author | |
DrGonzo1208
Newbie
Joined: 22 October 2012 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: XML Callback with PHPPosted: 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! |
|
![]() |
|
Support
RomanCart Team
Joined: 16 March 2004 Location: United Kingdom Status: Offline Points: 10803 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |