Skip to article
auto·printerHelpSystem status
All help articles

Print Rules

Updated · 10 min read

On this page

Print Rules choose which template an order uses, separately for each document type. For example, Amazon orders can use an Amazon packing slip while other orders use your default packing slip. A rule can also send that document to a particular Print Station.

For Amazon orders, which must not include marketing, use the Ledger packing slip (no promotions). A packing slip rule with Source Name equals amazon can pick it.

Rules do not add extra document types to an order. Use Print Chain to decide whether an order gets a packing slip, invoice, receipt, return slip, gift receipt or general document.

Example interface
Print Rules · before your first rule
Select the document type and add its first rule. With no rules, the default template is used.Scroll across the illustration to see the full view.

Add a rule#

  1. Open Print Rules and choose the document type at the top of the rules card.
  2. Click Add … rule, such as Add packing slip rule. The rule opens in a dialog; give it a recognizable name.
  3. Add the conditions the order must meet.
  4. Choose the template that should print.
  5. Optionally choose a Print Station. With only one station, the selector stays on the default; add another station to choose between destinations.
  6. Click Save rule. To leave without saving, click Cancel or close the dialog.

Create or enable your templates first in Templates. Rules are available for every document type except pick slips and quotes: packing slips, invoices, receipts, return slips, gift receipts and general documents. Pick slips cover a batch of orders and are chosen from the Print picker instead. Quotes print from a draft order, where you pick the template yourself; see Print quotes from draft orders.

Example interface
Print Rules · editing a rule
This example selects the Amazon template when Source Name equals amazon. Conditions, template, and destination are configured in the same rule dialog.Scroll across the illustration to see the full view.

Understand the pipeline#

Rules run top to bottom, and the first match wins. Use the arrows to put specific rules above broad ones. Each document type has its own priority order.

The exception is a Print Chain item set to Every matching rule: when the chain runs, every rule that matches prints its template, and the priority order sets which document comes out first.

The conditions you add in the rule editor must all match. Text comparisons ignore capitalization. If no rule matches, Autoprinter uses the default template for that document type. Without a usable template, that document is skipped.

For example, put “Tags starts with PO-” above “Source Name is not empty” if purchase-order customers need a special packing slip. Otherwise, the broader source rule can win first.

Test an order before printing#

Open Rule Tester, select the document type, and choose a recent order or enter an order number. Testing uses the current order data from Shopify and does not print anything.

Read the result in this order:

  1. Order being tested: confirm the order identity, source, statuses, date, and destination.
  2. Template that would print: check the template name, document type, matching rule or default fallback, and Print Station.
  3. Why this template was selected: follow the rules in priority order. The trace shows the conditions and the order's values. A matched rule wins; later rules are skipped because an earlier rule already won.

When the document type's Print Chain item is set to Every matching rule, Rule Tester checks every rule instead, marks each one that matches, and ends with Would print: and the templates that would print, in order, or nothing. The default template is listed only when a matching rule uses it.

A skipped rule has not failed its conditions; it was never needed. If the wrong template wins, compare the displayed order value with the condition, then check rule priority.

Location rules need a separate check. Rule Tester evaluates the order without the per-location context used during document rendering. It cannot confirm a Fulfillment Location rule's result for each package. See Multi-Location Printing before relying on location routing.

Product conditions on split-delivery orders. Rule Tester checks Product Title, SKU, and Product Collection against every item on the order. When an order ships from more than one location, each package's documents are checked against only the items in that package, so a package without the item does not match. If you print one set per order, the documents are checked against every item, as in Rule Tester.

The How it works button explains all three tabs, with links to these guides for more detail.

Example interface
Rule Tester · a matching order
Read from top to bottom: the order, the selected template, then the rule-by-rule explanation. This example matches the first rule and skips the next; no print is sent.

Fields you can match#

The Field list is grouped into Order, Shipping and payment, and Items.

Field What it reads
Source Name The order source, such as amazon, web, pos (Shopify POS), or shopify_draft_order.
Channel Handle The sales channel's handle.
Channel Name The sales channel's display name, such as Amazon or Online Store. Orders created by another app often have no channel, even when Shopify's order list shows the app's name under Channel. Match those with App Name.
App Name The app that created the order.
Tags The order's tags; use contains or starts with to check individual tags.
Financial Status The payment status, such as PAID or PENDING.
Fulfillment Status The fulfillment status, such as FULFILLED or UNFULFILLED.
Order Note The free-text note on the order.
Order Total The order total in your store currency when the order was placed, including shipping and tax. Later edits and refunds do not change it.
Payment Method The payment methods on the order as Shopify names them, such as shopify_payments, manual, paypal, gift_card, or Cash on Delivery (COD).
Shipping Method The name of each shipping method on the order, such as Standard, Express, or Local Pickup.
Ship-To State The destination state or province code, such as CA.
Ship-To Country The destination country name, such as United States.
Fulfillment Location The assigned location name when location data is available for the document being rendered. For a Shopify POS sale the customer takes home, that's the store that rang it up. Doesn't match documents for an order split across locations when you print one set per order.
Product Title The name of each item as saved on the order. Later changes to the product's name do not affect it.
SKU The SKU of each item. Items without a SKU are skipped.
Product Collection Whether any item's product is in a collection with this exact title (manual or automated). Custom items are in no collection.

Not sure of the exact text, such as a payment method name? Test the order in Rule Tester: it shows the order's own value for every condition.

Operators#

Operator Meaning
equals The complete value matches. For fields with several values (payment, shipping, product title, SKU, collection), any one of them matches.
does not equal The complete value differs. For fields with several values, none of them matches.
contains The text includes your value; for tags and fields with several values, at least one includes it.
does not contain The text excludes your value; for tags and fields with several values, none includes it.
starts with The text begins with your value; for tags and fields with several values, at least one begins with it.
is empty There is no value, such as an order with no shipping method.
is not empty A value is present.
is greater than Order Total only: more than your number.
is at least Order Total only: your number or more.
is less than Order Total only: less than your number.
is at most Order Total only: your number or less.

The rule editor only offers the operators that fit the field you pick. Order Total takes the four number operators plus equals and does not equal. Enter a plain number, like 50 or 49.99, without a currency symbol or commas. Product Collection takes equals and does not equal.

For Tags, equals compares the combined tag text rather than checking for one tag anywhere in the list. Use contains or starts with for individual-tag matching, and confirm the result in Rule Tester. Contains is a text match, so gift can also match gift-wrap.

When fulfillment-location context is unavailable, location conditions do not match, even with is empty or a negative operator. This prevents unknown destinations from accidentally routing a document.

Order total and product conditions#

Some rules you can build:

Goal Condition
Orders over $200 print the premium packing slip Order Total is greater than 200
Express shipping orders go to the front-desk printer Shipping Method equals Express, with the front-desk Print Station selected
Cash on Delivery orders print the COD invoice Payment Method equals Cash on Delivery (COD) (an invoice rule)
Orders with a glass item print the fragile packing slip SKU starts with GLASS-
In-store sales print a kitchen ticket Source Name equals pos, with the Kitchen ticket template (a General Documents rule)
Wholesale orders print the wholesale invoice Product Collection equals Wholesale (an invoice rule)

Product Title, SKU, and Product Collection match when any item on the document matches. To leave out orders that contain an item, use does not contain or does not equal.

If Autoprinter cannot read a value, such as when Shopify does not answer the collection check in time, that one condition counts as not matching, whichever operator it uses. The rest of the rule is still checked, so another condition in the same rule can still match, and if no rule matches, the default template prints. Rule Tester shows Collection data unavailable when this happens.

Choose a template when you print#

Rules make the first choice, and you can still change it. In Print → Autoprinter, the template your rules picked is marked Print Rule, and the fallback is marked Default Template. Click any other template to use it for that print instead.

When you print many orders at once, Use Print Rules gives each order its own template, and Only print orders with matching rule leaves out the orders no rule matched. See Print orders in bulk.

The same rules choose the invoice, return slip or gift receipt your customers download from their order email or order page. See Let customers download invoices as PDFs.

Send documents to a specific printer#

A rule targets a Print Station, not a Label Source. Leave the station on the default to use your shop's default destination. For multiple locations, create location-specific rules and select the station at each location.

A station referenced by a rule cannot be removed until those rules are reassigned. See Print Stations & Label Sources.

Need help? Use Need help? inside the app or email support@autoprinter.app.

Did this help?

Still stuck?

Use the Need help? button inside Autoprinter, or email support@autoprinter.app. Average response time: one business day.

Related articles

  • Print Chain

    Your Print Chain lists every document you print. Each order gets only the ones that apply.

  • Custom Templates

    Design your own documents: change the layout, add images and branding, and pull in live order data.

  • Let customers download invoices as PDFs

    Add a download link to your order confirmation email and a Download button to your order pages so customers can save their invoice, return slip or gift receipt as a PDF.