Order flow & proof

Attaching terms as a PDF to WooCommerce order emails

How WooCommerce order emails pull the approved terms or withdrawal version as a PDF attachment, HTML fragment or JSON from TermShelf — instead of maintaining legal texts in the theme or mail template that gets overwritten on the next update.

8 min read·TermShelf editorial

Frequently asked questions

Should I write the terms directly into the WooCommerce mail template?
Not advisable: overridden mail templates live in the theme and can be displaced on updates, and the version is not mapped to an approved one. Better is a server-side fetch of the artifact from the Public Delivery API when generating the order email.
Is there an official TermShelf plugin for WooCommerce?
This guide does not claim a ready-made plugin and deliberately names no specific WordPress hooks. What is described is an integration-open, server-side fetch via the Public Delivery API; the concrete integration depends on the WordPress/WooCommerce setup.
How does the delivered terms version stay provable?
By storing the version number used at send time with the WooCommerce order. Since every publication is a dated, immutable snapshot, the same version can be retrieved again later.

Try TermShelf

Structures, versions, and publications in one workflow.

Related guides

Attaching terms as a PDF to WooCommerce order emails — TermShelf