Miva Merchant 4 Module FAQs » Generic Order Export (BROK_GENEXPORT)
These fields permit very sophisticated filtering of the export.
The text in the fields (if any) are the actual filter used to filter the orders and orderitems (respectively) databases. If they are left empty, no filtering will be done.
So you can enter a filter statement into these fields that will limit the orders exported. The filter statements take tokens to represent the various order and item data; the same tokesn used to display those fields in the templates.
For example, to filter the order data for a particular order id you could use the filter:
('1000' IN %orderid%)
This will export ONLY order id 1000.
Note that the value to be searched for has to be in single quotes and the whole thing should be enclosed in parentheses). Another example, to search for a range of orders:
((%orderid% LT '1020') AND (%orderid% GT '1000'))
will result in all orders with id less than 1020 and greater than 1000 being export. The comparison operators are those available in standard Miva script (You can go here: http://www.miva.com/docs/ScriptMan_html/04-Operators.html#468771 for more details):
GT greater than
LT less than
EQ equal to
NE not equal to
GE greater than or equal to
LE less than or equal to
Filters can also contain the logical operators:
NOT
AND
OR
As well as the string operators:
$
IN/CIN
EIN/ECIN
SUBSTR
Most Recent FAQ Entries:
Top 10
"order filter" and "item filter" Field Uses
What are the "order filter" and "item filter" fields used for?
These fields permit very sophisticated filtering of the export.
The text in the fields (if any) are the actual filter used to filter the orders and orderitems (respectively) databases. If they are left empty, no filtering will be done.
So you can enter a filter statement into these fields that will limit the orders exported. The filter statements take tokens to represent the various order and item data; the same tokesn used to display those fields in the templates.
For example, to filter the order data for a particular order id you could use the filter:
('1000' IN %orderid%)
This will export ONLY order id 1000.
Note that the value to be searched for has to be in single quotes and the whole thing should be enclosed in parentheses). Another example, to search for a range of orders:
((%orderid% LT '1020') AND (%orderid% GT '1000'))
will result in all orders with id less than 1020 and greater than 1000 being export. The comparison operators are those available in standard Miva script (You can go here: http://www.miva.com/docs/ScriptMan_html/04-Operators.html#468771 for more details):
GT greater than
LT less than
EQ equal to
NE not equal to
GE greater than or equal to
LE less than or equal to
Filters can also contain the logical operators:
NOT
AND
OR
As well as the string operators:
$
IN/CIN
EIN/ECIN
SUBSTR
Last update: 2003-07-30 01:05
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
- Is there any way to look up a customer's ... (2008-08-06 18:04)
- I am looking for a module that will allow ... (2008-08-06 18:00)
- Is it possible to display a link in Phone ... (2008-08-06 12:05)
Top 10 
- 2754 views:
Adding Tokens to Evaluate Expressions - 2698 views:
Is there a way to "Limit" the number of ... - 2654 views:
Why won't you call me for technical support? I ... - 2549 views:
Are license keys valid for more than one store? ... - 2447 views:
I'm trying to enter a license key and get ... - 2425 views:
How do I install a module? - 2286 views:
How do I check for a module upgrade? - 2255 views:
How can display and change the parameters of an ... - 2097 views:
The total on my checkout pages are not correct. ... - 1932 views:
I have select and radio type attributes in my ...
















