Cart Page Unit Price w/ Discount & Total Amount

Topic summary

A user is experiencing a pricing discrepancy on their Shopify cart page with an auto-applied discount based on customer tags.

The Issue:

  • Individual line items show a discounted unit price (e.g., $1.31 after 48.5% off $2.54)
  • When multiplied by quantity (×10), the displayed total is $13.10
  • However, the actual cart total calculates as: (original price × quantity) - discount = $13.09
  • This creates a $0.01 difference due to rounding

Current Status:

  • One respondent suggested editing the cart template code to display {{ item.final_line_price | money }} for the discounted unit price
  • The original poster has requested further clarification on implementing this solution
  • The discussion remains open with the technical implementation details pending
Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hello, I have an auto applied discount based on customer tag. In the Cart page, you can see the compare price (the value of item with discount and without discount).

Example on the screenshot above, the discounted price of the item is 1.31$ (2.54$ - 48.5% = 1.308 or 1.31) and when multiplied by 10, the total should be 13.10$. But based on my total amount in cart page, its calculation is (2.54$ * 10) = 25.40 - 48.5% = 13.081 or 13.09$ (which is more accurate).

How can I sort this out? Is there a way the total amount will calculate it as discounted price * qty?

1 Like

Hi,

Hope this will help

  • Go to Cart Template and Edit Code to Use Discounted Price
  • Show Discounted Unit Price
    {{ item.final_line_price | money }}
  • Show Discount Amount (Optional)

Hi @Small_Task_Help could you please elaborate this? Thank you