New Zenner
- Join Date:
- May 2008
- Posts:
- 5
- Plugin Contributions:
- 0
Export orders to XML
Anyone know how I could export my orders to an XML file? I have a thirdparty software that will only batch import orders if they are in XML format.
Views: 4,602
New Zenner
Anyone know how I could export my orders to an XML file? I have a thirdparty software that will only batch import orders if they are in XML format.
New Zenner
Have you tried UPS XML Auto Export? In the download section.
New Zenner
I have Zen Cart up and running
Now I'm looking to get an XML file for each order that I can send to the fulfillment house
I took the code on packingslip.php and made it spit out my xml into a text box that I current copy and paste, but I would rather write each order to a folder on the site instead.
This can't be an original request. Does anyone have anything like this?
One xml file per order
Thanks
New Zenner
TitanWest:
I have Zen Cart up and running
Now I'm looking to get an XML file for each order that I can send to the fulfillment house
I took the code on packingslip.php and made it spit out my xml into a text box that I current copy and paste, but I would rather write each order to a folder on the site instead.
This can't be an original request. Does anyone have anything like this?
One xml file per order
Thanks
If you are able to get your xml into a text box you could add a submit button to your form and some code similar to this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> </head> <body> <form name="form1" method="post" action=""> <label> <input type="text" name="textfieldorder" id="textfieldorder"> <br> </label> <label></label> <textarea name="textfieldxml" cols="80" rows="3" id="textfieldxml"></textarea> <label> <input type="submit" name="button" id="button" value="Submit"> </label> <?php echo $_GET['textbox']; ?> </form> </body> </html> <?php //Attempt to write to file //This will create a file called "Order textfieldorder.xml" $file = "D:\wamp\www\leanoffice\SOP\\currentsops\\" . "Order " . $_POST['textfieldorder'].".xml"; $fh = fopen($file, 'w') or die("Could not open $file for writing");{
fprintf ($fh, $_POST['textfieldxml']);
}
?>
Totally Zenned
TitanWest:
I have Zen Cart up and running
Now I'm looking to get an XML file for each order that I can send to the fulfillment house
I took the code on packingslip.php and made it spit out my xml into a text box that I current copy and paste, but I would rather write each order to a folder on the site instead.
This can't be an original request. Does anyone have anything like this?
One xml file per order
Thanks
Hi,
Did you ever find a solution to this?
Regards
Phil
Phil Rogers
A problem shared is a problem solved.
New Zenner
I'm also looking for a way to create an XML file to export order and shipping information to a 3rd party fulfillment warehouse. Does anyone already have a solution for this that they can publish?
Posted via Mobile Device
New Zenner
I'm also looking for this
Tell staff why this post should be reviewed.