Miva Merchant 4 Module FAQs » Generic Order Export (BROK_GENEXPORT)
That's exactly the sort of thing it is for.
To limit the export only to particular shipping methods, you have two approaches. If the ship_data field (i.e. Orders.d.ship_data) contains a specific string to include then you could use this:
('UPS' CIN %shipdata%)
But the UPS Advanced module doesn't include the UPS string in the ship_data field (but it does include the UPS designation for the shipping method, eg. GND, 1DA, so you could filter on those). So you will need to use the ship_id field of the database (this stores the id of the module). You can determine it by looking at the Orders database directly, at the ship_id field. Another simpler approach is to add the token %shipid% to your orders template, run a test export, and see what %shipid% is listed for order which uses the shipping module you're interested in.
With the ship id in hand (in this example it is 73) you would use:
(%shipid% Eq '73')
and this would export only those orders which used that module.
(%shipid% NE '73')
would export only those orders which did NOT use that module.
{docurl}
Using "Order Filter" to Limit the Export to a Particular Shipping Method
Can I use the "order filter" to limit the export to only orders that used a particular shipping method?
That's exactly the sort of thing it is for.
To limit the export only to particular shipping methods, you have two approaches. If the ship_data field (i.e. Orders.d.ship_data) contains a specific string to include then you could use this:
('UPS' CIN %shipdata%)
But the UPS Advanced module doesn't include the UPS string in the ship_data field (but it does include the UPS designation for the shipping method, eg. GND, 1DA, so you could filter on those). So you will need to use the ship_id field of the database (this stores the id of the module). You can determine it by looking at the Orders database directly, at the ship_id field. Another simpler approach is to add the token %shipid% to your orders template, run a test export, and see what %shipid% is listed for order which uses the shipping module you're interested in.
With the ship id in hand (in this example it is 73) you would use:
(%shipid% Eq '73')
and this would export only those orders which used that module.
(%shipid% NE '73')
would export only those orders which did NOT use that module.
Last update: 2003-07-30 01:07
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?














