Miva Merchant 4 Module FAQs » Generic Order Export (BROK_GENEXPORT)


{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

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry