How to hide an order's line_item if it has been removed?

New Member
1 0 0

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.

Is there any way to solve this issue?



As far as I am aware it's not possible to add a line_item property w/ price via Liquid, so I assume that you are including that line_item via an app? 

If you're indeed using an app, the best alternative is to reach to the devs for a solution.

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Tutorials: Minimal theme product pages slideshow | Debut Theme product pages slideshow
◦ Looking to hire an experienced developer? Same day response: