Skip to main content

Test which template an order gets

When some templates are used instead of others for certain orders, Test with an order shows which template a real order gets, and why. Use it to check your conditions before you rely on them.

Before you start

You need at least one template that’s used instead of another. If there’s none, the test says “No template is used instead of another yet. Set one up first.” See Use a template for some orders only.

Test an order

  1. Open Test with an order in one of these places:
    • On the Templates page, in the Pick the right template automatically section.
    • On a template’s settings page, under Who gets this template?. Save any changes first: the button is turned off while you have unsaved settings.
  2. In When printing, choose the template you’d print. Only templates that others stand in for are listed.
  3. In Order number, enter the order’s number, such as #1001.
  4. Click Test.

Read the result

The result says which template the order gets:
  • “#1001 prints with Wholesale invoice instead of Receipt / Invoice.” means a stand-in template fits the order.
  • “#1001 prints with Receipt / Invoice: no template used instead fits it.” means none of the stand-ins fit, so the usual template prints.
Below it, each stand-in template is listed in the order Foliant tries them (“Tried in this order; the first that fits wins.”), marked Fits or Doesn’t fit. For each condition you see what the condition asks for and what the order has, for example “Shipping country: Canada” and “This order: United States”. This tells you exactly which condition didn’t match. If the order number isn’t found, the test says “No order #1001 found.”