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?
@northbanq7
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.
User | Count |
---|---|
25 | |
20 | |
17 | |
16 | |
15 |