View Categories

Shortcode Reference

The plugin provides a comprehensive set of shortcodes to dynamically insert order, item, and document data into your PDF templates.

Document and Order Shortcodes #

Shortcode Description Example Usage
[doc_nr] The document number (e.g., Invoice number). Invoice No: [doc_nr]
[doc_formatted_date] The document creation date. Date: [doc_formatted_date datetime_format="Y-m-d"]
[order_number] The WooCommerce order ID. Order ID:
[order_status] The current status of the order. Status: [order_status]
[order_formatted_billing_address] The customer’s formatted billing address. Billing Address: [order_formatted_billing_address]
[order_total] The total amount of the order. Total:
[order_total_tax] The total tax amount for the order. Tax:
[[order_total_tax_percent]] The total tax percentage. Tax Rate: [order_total_tax_percent format="%.0f"]
[order_payment_method_title] The payment method used for the order. Payment Method:
[order_meta key="..."] Retrieves a specific piece of order metadata. VAT ID:

Item and Refund Shortcodes #

Shortcode Description
[item_name] The name of the product item.
[item_qty] The quantity of the product item.
[item_single] The price of a single item (excluding tax).
[item_total] The total price for the item row (excluding tax).
[item_total_tax] The total tax amount for the item row.
[item_product_sku] The SKU of the product.
[item_meta key="..."] Retrieves a specific piece of item metadata.