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 UPS Custom Integration configured so that ... (2008-07-11 10:21)
- I would like to conditionally display something for a ... (2008-07-03 17:37)
- Is there any way to configure specific global headers ... (2008-06-02 18:28)
- I pay my affiliates with gift certificates from your ... (2008-05-29 10:42)
- Is there any way to add a negative number ... (2008-05-22 13:51)
Top 10 
- 2521 views:
Adding Tokens to Evaluate Expressions - 2510 views:
Why won't you call me for technical support? I ... - 2489 views:
Is there a way to "Limit" the number of ... - 2402 views:
Are license keys valid for more than one store? ... - 2308 views:
I'm trying to enter a license key and get ... - 2270 views:
How do I install a module? - 2133 views:
How do I check for a module upgrade? - 2132 views:
How can display and change the parameters of an ... - 1960 views:
The total on my checkout pages are not correct. ... - 1843 views:
I have select and radio type attributes in my ...
















