{docurl}
Can I export line breaks and carriage returns into the file?
Q: Can I export line breaks and carriage returns into the file?
A: This capability was recently added.
You can use the tokesn &cr; and &lf; in your templates. In the exported file these will be replaced with a carriage-return and linefeed, respectively.
Whether or not you'll need both &cr; and &lf; at the end of a line depends on the operating system used to open the text file.
Here's an example of how to use them. The first 8 lines of a sample format file:
OID:55768W
OED:01/15/2003
OET:20:03:00
CFN:Gerri
CLN:Buchnee
CAD:P.O. Box 4181
CCI:Nashua
To achieve this, you would modify the "Template for Order row" to have (obviously this portion is just for the first 8 fields and therefore only a portion of what you'll have in that template):
OID:%orderid%&cr;&lf;
OED:%orderdate%&cr;&lf;
OET:%ordertime%&cr;&lf;
CFN:%ship_fname%&cr;&lf;
CLN:%shp_lname%&cr;&lf;
CAD:%ship_addr%&cr;&lf;
CCI:%ship_city%&cr;&lf;
In my test store with my test editor (using Windows XP Pro) I needed only &cr; or &lf; to get the line break.
Last update: 2006-02-13 21:04
Author: Support
Revision: 1.0
You cannot comment on this entry
Records in this category
- "order filter" and "item filter" Field Uses
- Using "Order Filter" to Limit the Export to a Particular Shipping Method
- What tokens can I use to export data about coupons, gift certificates, and other "charges"?
- The program I want to import the data into requires that I have some text at the end of the exported file for each order (i.e. after the products). How can I do that?
- Is there any way to remove characters like hard-returns and quotation marks from the exported data?
- I would like to base the exported file name on the date or the batch name. Can I do this?
- Can I export line breaks and carriage returns into the file?
- I would like, filter by date. Is this possible?














