CSV Export: Routing Rules, Splitting Output Rows and Shipping Lead Time
plan: Pro plan only (R6)
screens: "Settings" → "Routing rules" / "Settings" → "CSV templates" edit screen, "Split settings for this template" / "Settings" → "Shipping lead time" / "Ship by today" in the "Order List"
verified_from: The CSV screen implementation (screens and calculation of routing rules and shipping lead time) + human-facing manual
ui_verified: Field names were confirmed from the code. Visual confirmation on the real screen has not been done
SUMMARY
- Routing rules: orders are judged by conditions and split per carrier (= CSV template). The result appears as the per-template counts in the Order List, and each template can be exported.
- Splitting export rows: splits CSV rows per product inside one template (“Split settings for this template” of each template). A separate feature from the routing rules, which split by carrier.
- Shipping lead time: calculates an order’s “ship date”. The result can be filtered with “Ship by today” in the Order List.
Both are tabs inside “Settings” of the Pro CSV screen.
Routing rules
FACTS
R-1 Set in "Settings" → "Routing rules". The main switch is "Route by template". When OFF, no routing is done and all orders are exported to each template.
R-2 One rule = one template (carrier). A rule has "conditions", and orders that meet them are routed to that template.
R-3 When a rule has several conditions, it is "match if any is met" (OR). It is not evaluated as "AND".
(Wanting "only when all of several conditions are met" cannot be done by crafting conditions. ESCALATE)
R-4 There are two kinds of "Routing mode":
"Exclusive" … orders are evaluated from the top and routed only to the carrier of the first rule they meet (default)
"Match all" … evaluated with all rules and routed to the carriers of all rules they meet (the same order enters several templates)
R-5 Orders that match no rule are routed to the template marked "Default" (★). Choose the default destination under "If no rule matches".
R-6 "Split items within an order" is a separate feature. When one order has products of different carriers mixed, only the products matching each template's "Product Split conditions" are split and exported to that template.
It cannot be combined with "Match all" mode. It also cannot be used when a template with "Export split by delivery fulfillment unit" is chosen.
R-7 When you edit a rule, the "Simulator" recalculates immediately, and you can check the result of routing the current orders (counts per template) before exporting.
R-8 The condition's "Field" is an order item (shipping address, product name, product tags, order tags, total price, total weight, shipping profile, etc.). Numbers use a range; strings use "contains", "contains any", etc.
R-9 Example: "Normal delivery goes to Yamato Transport, heavy orders to Sagawa Express, light orders to Click Post, and orders whose shipping profile is 'ゆうパック' (Yu-Pack) to Yu-Pack" — set conditions in the rule of each template. Orders that match no rule go to the template with the "Default" badge (R-5).
R-10 In "Exclusive" mode (default), every order belongs to some template, and the same order is never exported to several templates in duplicate.
R-11 With a template's "Preview" (opened from the template in the Order List's right panel), you can check the CSV rows routed to that template. When the routing rules send all matching orders to other templates, it shows "All matching orders are routed to other templates" (with an "Open routing rules" button).
R-12 While "Split items within an order" is ON, "Match all" cannot be chosen in "Routing mode" (the screen shows "Cannot be used together with 'Split items within an order'").
R-13 A template used with Update tracking numbers (Pro) should export "Order Number-ID" (order number + "-" + a sequence number, e.g. #1514-0) as the ID in the CSV. The export history is recorded automatically each time you export when "Record CSV export timestamp" in "Settings" → "Fetch settings" is ON (when OFF, the record is not confirmed until you press the Save button). For how Update tracking uses the history and what happens when there is none, see 110.
R-14 Only while "Split items within an order" is ON, the Order List's "Unexported" splits into two tabs, "Has unexported" and "Not started" (when OFF, there is one "Unexported" tab). "Has unexported" shows orders with at least one unexported product (same as the former "Unexported"; it also includes orders where nothing has been exported). "Not started" shows orders where no product has been exported (they are included in "Has unexported"). The "Unexported" tab in a template's preview shows only orders whose products for that template are not exported (exports of other templates do not affect it; orders with no products for that template do not appear).
R-15 Order List display (routing and export status): an export-status icon appears after the order number (ring = not exported, half-filled ring = partly exported, check = exported, delivery mark = tracked). When an order has several products and not all are done yet, the number done is shown next to the icon, like "1/2" (hover the icon to see the status). The "Export status" text column is hidden by default (show it from "Edit columns"). While routing is ON, a "Routing" column appears after the order number and lists the templates the order is routed to; a template whose products in that order are all exported is shown struck through and dimmed.
PROC-R1 Start using routing (example: split Sagawa and Yamato by address)
Where: App left menu "Order List" (or Home > "Order List (CSV)" > "CSV export") > top tab "Settings" > "Routing rules"
Steps:
1. In "Settings" → "CSV templates" prepare the templates of the carriers you want to export (example: ヤマト B2クラウド, 佐川 e飛伝3)
2. Open "Settings" → "Routing rules" and turn ON "Route by template"
3. In the rule of the destination template press "Add condition" and specify the field (example: shipping address) and values (example: Hokkaido, Okinawa)
4. Under "If no rule matches" choose the default destination ("Default carrier")
5. Check the counts per template in the "Simulator"
6. Save with "Save" in the CSV screen's save bar
Result: in the Order List, the counts per template are split according to the conditions. Export the CSV with "Export" of each template
PROC-R2 Change the evaluation order of conditions
Where: App left menu "Order List" (or Home > "Order List (CSV)" > "CSV export") > top tab "Settings" > "Routing rules"
Steps: in "Exclusive" mode, change the order by "Drag to reorder" the rules. They are "Evaluated top-down" and the first matching rule is adopted
Note: in "Match all" mode the order has no effect (all rules are evaluated)
PROC-R3 Use a different carrier per product within one order (example: only frozen food to another template)
Where: App left menu "Order List" (or Home > "Order List (CSV)" > "CSV export") > top tab "Settings" > "Routing rules"
Prerequisites: "Route by template" is ON. The routing mode is "Exclusive" (it cannot be used with "Match all"). It also cannot be used when a template with "Export split by delivery fulfillment unit" is chosen (R-6)
Steps:
1. Turn ON "Split items within an order"
2. In each rule, press the pencil (edit) icon on the "Item split" row to open "(carrier name) — item split"
3. With "Add OR condition", set the condition of the products that go into that template (example: the product tag contains "Frozen") and save
4. Check with the "Simulator" / preview that the order is split by product, then save with "Save" in the CSV screen's save bar
Result: only the products matching the condition are split and exported to that template. Products that match no item-split condition go to the template that matched the rule's condition, or else to the "Default" template. Every product belongs to some template, and the same product is never exported to several templates in duplicate
Example: only frozen food is shipped separately / only pre-order items are shipped later. If products with the frozen-food tag use the Yamato Transport template, order #1514 is split between Yamato Transport and Yu-Pack. The preview of a template that receives nothing (all orders routed elsewhere) shows the text in R-11
Note: while "Split items within an order" is ON, "Match all" cannot be chosen in "Routing mode" (R-12)
QA (routing)
- Q: One order goes into two templates. A: Check that the routing mode is not “Match all” (R-4). To make it one, use “Exclusive”.
- Q: An order enters no template / everything enters the same template. A: When “Route by template” is OFF, all orders appear in each template (R-1). Orders that match no rule go into the default template (R-5). Check the counts in the simulator.
- Q: I want to route only orders that meet both conditions (AND). A: Several conditions in one routing rule are evaluated with OR (R-3). AND cannot be set (the conditions inside a shipping lead time rule are evaluated with “and”, the opposite of routing, so do not mix them up — LT-6), so ask for the concrete conditions and, if needed, draft an inquiry to the developer.
- Q: I want a different carrier per product within the same order. A: Use “Split items within an order” (R-6, steps in PROC-R3). In each template’s “Product Split conditions”, specify the products that go into that template.
- Q: The preview says “All matching orders are routed to other templates”. A: It is not an error. No order matches that template and all of them are routed to other templates (R-11). Check the routing rules’ conditions.
- Q: “Match all” in “Routing mode” cannot be selected. A: “Split items within an order” is ON (R-12). They cannot be used together, so use only one.
- Q: I split by product and exported one template, but the order stays in “Unexported”. A: The Order List’s “Has unexported” also shows orders that still have unexported products (R-14). To check whether that template is done, use “Unexported” in the template’s preview (judged only on that template’s products). To see only orders where nothing has been exported, use “Not started”.
- Q: Update tracking numbers says “Order Number-ID” is needed / there is no history. A: Update tracking matches the export history by “Order Number-ID” (R-13). When “Record CSV export timestamp” is OFF, the history is not confirmed until you press Save (it is not kept if you discard). For what happens without history, refer to 110.
Splitting export rows (per-template setting)
FACTS
S-1 In the card "Split settings for this template" of the template's edit screen, choose one of the following (exclusive radio). Choosing another method removes the settings of the conflicting method (such as registered rules):
"Do not split" … output an order as a single row
"Split every row" … when an order has several products, output them on separate rows per product
"Put specific products on their own shipping row" … only the products matching a condition go on their own shipping row
"Split per delivery fulfillment (for split shipments)" … separate rows per fulfillment unit (R-6)
S-2 This splits rows inside one template. It is a separate feature from the "Routing rules" that split carriers (templates) (R-6 "Split items within an order").
S-3 "Split every row": use it when you want a row per product, such as a picking list or invoices. The "Order Number-ID" of a split row is the order number with a sequence number (example: #1515 becomes 4 rows, #1515-0 to #1515-3).
S-4 Choosing "Split every row" shows "Split per quantity". It expands a product of quantity N into N rows. It cannot be chosen while "Split fulfillment of shipments" in tracking updates is ON.
S-5 "Put specific products on their own shipping row": for each rule, set "① Target products" (conditions, e.g. product tags) and "② What happens to this row". "Output as a separate shipping row" always happens, and if needed "Override a column value" changes column values of that row only (example: set the cool category to 2).
S-6 "Split every row" and "Put specific products on their own shipping row" cannot be used together (choose one).
S-7 "Split per delivery fulfillment" cannot be chosen while "Split items within an order" in the routing rules is ON, or while "Split fulfillment of shipments" in tracking updates is ON.
S-8 After changing the split method, run "Get orders" again so the rows are split with the latest setting.
PROC-S1 Split rows per product (example: use the CSV as a picking list)
Where: App left menu "Order List" (or Home > "Order List (CSV)" > "CSV export") > top tab "Settings" > "CSV templates" > the edit screen of the template > card "Split settings for this template"
Steps:
1. Choose "Split every row" (to get a row per quantity, also check "Split per quantity")
2. Save with "Save" in the CSV screen's save bar and run "Get orders" again
3. Check with the template's "Preview" that the rows are split per product
Result: an order with several products is output split into per-product rows (#1515-0, #1515-1 …)
PROC-S2 Put only specific products on their own shipping row (example: only the frozen items of the same order, with the cool category set to 2)
Where: same as PROC-S1 (card "Split settings for this template")
Steps:
1. Choose "Put specific products on their own shipping row" and press "Add rule"
2. In "① Target products" set the condition (example: product tag "冷凍食品" (frozen food))
3. In "② What happens to this row", use "Override a column value" to set the column and value to replace (example: cool category 2)
4. Save with "Save" in the CSV screen's save bar, run "Get orders" again, and check in the preview
Result: the products that match go on their own shipping row (example: #1513-1), and only that row has the column value replaced
Use cases: the same order has room-temperature and frozen products with different shipping slips / an order placed together with a pre-order item has a different shipping time (you do not want to reflect the desired delivery date)
QA (splitting export rows)
- Q: I want rows split per product, as a picking list. A: Use the template’s “Split every row” (S-3, steps in PROC-S1).
- Q: I want only the frozen items of the same order on a separate shipping slip (change the cool category). A: Use “Put specific products on their own shipping row” and set the target products and “Override a column value” (S-5, steps in PROC-S2). To send them to a different carrier, use “Split items within an order” in the routing rules (PROC-R3).
- Q: I want to use both “Split every row” and “Put specific products on their own shipping row”. A: They cannot be used together (S-6). Choose one.
- Q: I changed the split setting but the preview does not change. A: Save, then run “Get orders” again (S-8).
- Q: “Split per delivery fulfillment” cannot be chosen. A: “Split items within an order” in the routing rules, or “Split fulfillment of shipments” in tracking updates, is ON (S-7).
Shipping lead time
FACTS
LT-1 Set in "Settings" → "Shipping lead time". It is effective only when "Use shipping lead time" is ON, and the "Ship by today" tab appears in the Order List.
LT-2 Ship date = order date + lead-time days ("N days from the order date"). In a rule with "requested date first" ON, an order that has a delivery date is calculated backward as delivery date − lead-time days. An order without a delivery date always uses the order date addition.
LT-3 When the lead time is 0 days it shows "On order date" (same-day shipping); with "requested date first" and 0 days it shows "On requested date".
LT-4 When "Subtract business days only" (calculate excluding holidays) is ON, days are counted excluding holidays. Holidays refer to the holiday calendar (group) in "Settings".
LT-5 For a rule with "Order cutoff time (optional)" set, with order-date addition, orders placed after the cut-off time get +1 day.
LT-6 Rules are evaluated from the top and the first rule whose conditions are met is adopted (several conditions in a rule are "and"). Orders that match no rule follow "★ Default lead time".
LT-7 The basis of time and date is the store's time zone.
LT-8 "Ship by today" filters orders whose ship date is today (store time zone) or earlier (including orders already past the ship date).
PROC-LT1 Set the shipping lead time (example: frozen food ships 4 days before the delivery date)
Where: App left menu "Order List" (or Home > "Order List (CSV)" > "CSV export") > top tab "Settings" > "Shipping lead time"
Steps:
1. Open "Settings" → "Shipping lead time" and turn ON "Use shipping lead time"
2. Press "Add rule" ("Add shipping lead rule") and enter "Rule name"
3. In "Conditions" specify the field and value (example: product tags, Frozen). Several conditions become "and" with "Add AND condition"
4. Specify the number of days (lead time), and to count backward from the delivery date turn ON "requested date first"
5. To not count holidays, turn ON "Subtract business days only"
6. "Add" → "Save" in the CSV screen's save bar
7. In "★ Default lead time" set the number of days for orders that match no rule
Result: opening an order shows the ship date and the applied rule. With "Ship by today" you can filter the orders whose ship date is today or earlier
QA (shipping lead time)
- Q: The “Ship by today” tab does not appear. A: Check that “Use shipping lead time” is ON (LT-1).
- Q: What is the ship date of an order with no delivery date? A: It is calculated as order date + lead-time days (LT-2). Even with “requested date first” ON, an order without a requested date uses the order date addition.
- Q: I do not want Saturdays and Sundays counted. A: Turn ON “Subtract business days only” and put Saturday and Sunday into the holiday settings (LT-4).
- Q: The ship date is off / not as expected. A: Check in order the order of the rules (LT-6), whether requested date first is used (LT-2), the order cutoff time (LT-5), the holiday settings (LT-4), and the store’s time zone (LT-7). Ask for the order number and the displayed applied rule (ESCALATE).
ESCALATE
| Situation | Information to request |
|---|---|
| The routing destination is not as expected | Order number, the routing mode (Exclusive / Match all), a screenshot of the relevant rule’s conditions, the expected destination |
| Want to route with “and (AND)” | The concrete conditions. AND cannot be set, so check how the conditions are built and guide |
| The ship date is not as expected | Order number, the displayed applied rule, the order date and delivery date, the holiday settings, the expected ship date |
SEE