I'd like to customize the invoice file (uc-order-invoice.html.twig) to modify the content. Is there a list of the available tokens published anywhere? I'm especially interested in replacing the order_link token with the correct token to display the order number in plain text.

Comments

mrphilipwarner created an issue. See original summary.

tr’s picture

Status: Active » Fixed

The solution is the same for Drupal 8 and Drupal 7 - install and enable the contributed Token module. Then a link for the token browser will show up e.g. at /admin/store/config/checkout where you can view all the currently defined tokens.

We make the tokens available as template variables as well. To see all template variables follow the instructions at https://www.drupal.org/docs/8/theming/twig/discovering-and-inspecting-va...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.