Adding a summed Cost per item to Admin orders page

Topic summary

A store owner wants to display the total summed cost per item for products in an order on the admin Orders page in Shopify. This total should only be visible internally to staff, not to customers.

Proposed Solutions:

  • Use automation apps like Shopify Flow or Mechanic to calculate and store this data
  • Set up a flow triggered when an order is created
  • Include a custom code step to calculate the total cost per item across all line items
  • Save the calculated value as an order metafield, tag, or note attribute

Status: The discussion provides technical approaches but no implementation details yet. The solution requires custom automation setup to aggregate cost data at the order level.

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

I’m interested in adding a summed total of the Cost per item from the given products in an order when I look at individual orders within the Orders admin page within Shopify. I don’t want this summed total to be visible to customers, just to us on the Admin order page. Is there a way to do this? Thanks!

1 Like

Hi @WicksBathCo you could use an automation app like shopify-flow or mechanic to either add a tag, update a metafield, or an attribute / note_attributes.

If you need this type of automation then contact me for services
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.

You can set up a flow that triggers when the order is created, then you’ll probably need a short run code step to calculate the total cost per item for all of the line items, and then you’d want to save that as an order metafield to the order.