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.
I have managed to work around adding all of the relevant details required for a legal Commercial Invoice except for adding HS CODES which apparently can’t be done and now adding a TOTAL line item cost… I have to show “individual cost” or in my case pack cost AND the total of that line item cost. For example, a pack of 3 costs $20 but they have purchased 4 packs (of 3) so I must show Price $20 and TOTAL PRICE $80 .
I have managed to add the header but no matter what I do I can’t find the right liquid info to add the TOTAL PRICE to each line. This is how the code looks now:
I would like to do the same. I copied and pasted but it removed everything. I read above about op spacing it out. Do I need to do this? I don’t know how.