Trying to add TOTAL line price to an Order Printer Invoice that I am converting to a COMMERCIAL INV

Topic summary

A user is customizing a Shopify Order Printer invoice template to create a commercial invoice that displays both individual item prices and total line prices (e.g., $20 per pack × 4 packs = $80 total).

Initial Problem:
The user successfully added table headers but couldn’t find the correct Liquid variable to display the total price for each line item.

Solution Provided:

  • Use line_item.line_price instead of line_item.final_line_price
  • The Order Printer app uses different Liquid variables than standard Shopify themes
  • For subtotal, use {{ subtotal_price | money }} rather than cart-based variables

Working Code Structure:
The final solution includes a table with columns for Quantity, Item, Price, and Total Price, using {{ line_item.line_price | money_with_currency }} for the line total and proper formatting with money_with_currency filters.

Additional Issues:

  • One user reported the code removed everything when pasted (possibly formatting-related)
  • Another user is experiencing alignment issues with the Item Price column despite using text-align: right styling

The thread remains open with unresolved formatting and alignment questions.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Thank you!

I have copied and pasted the code you sent, spaced out, but it is still not
bringing up the total price for the line.

The description provided via the doc. is correct, that is exactly what I
need to show, but I can’t get it to work.