On our website, we have a customer account page that displays order details, which takes the order object and displays order.line_Items.
Though if a line_item has been removed, in the case of returns or item change, the removed line_item will still be displayed. The removed item’s price is still added to order.total_price.
I’ve checked the docs, and I find that there’s no way to distinguish whether a line_item has been removed from the order or not.
https://shopify.dev/docs/themes/liquid/reference/objects/customer
https://shopify.dev/docs/themes/liquid/reference/objects/order
https://shopify.dev/docs/themes/liquid/reference/objects/line_item
Is there any way to solve this issue?