Hi, by any chance does anyone know what liquid object to use for the line_items that has been refunded?
I can’t find in the documentation https://shopify.dev/docs/api/liquid/objects/line_item
But according to google, chatgpt and even shopify chat bot, I could use this but it is not working.
{% assign all_line_items = order.line_items | concat: refunded_line_items | uniq %}
{% for line_item in all_line_items %}
<!-- display line item details here -->
{% endfor %}
This also seems to be not working
{% for refund in order.refunds %}
{% for refund_line_item in refund.refund_line_items %}
{% assign refunded_item = refund_line_item.line_item %}
<p>{{ refunded_item.title }} - Refunded Qty: {{ refund_line_item.quantity }}</p>
{% endfor %}
{% endfor %}
So maybe anyone have tried and accessed it before? Thank you so much
PS: I am working on Receipt customization but it is using the same liquid objects