Problem showing refunded amount on invoice

Solved

Problem showing refunded amount on invoice

max15characters
Visitor
2 1 2

Hi everyone,

 

We're creating a new invoice template with Order Printer for edited orders; eg showing refunds.

In the documentation, I found total_refunded_amount under order object, but it's not showing even with money filter.

 

Is anyone having the same issue, or am I doing this wor

 

Any kind of helps would be much appreciated 😊

Accepted Solution (1)
max15characters
Visitor
2 1 2

This is an accepted solution.

Thanks for the reply @sanico-software 

 

Looping the Refunds object solved the issue.

Below is the snippet that works:

{% for refund in refunds %}
  {{ refund.amount | money }}
{% endfor %}

 

View solution in original post

Replies 3 (3)

sanico-software
Shopify Partner
56 0 10

Hi @max15characters 

 

It's hard to determine without screenshots or more information but from my experience creating custom edits for the Order Printer for my clients you should be able to pipe the value of `total_refunded_amount` into the money/currency filter.

Dom Tripodi | Sanico Software
I am a Software Engineer and Shopify Expert based in Adelaide, Australia. I build ecommerce websites with Shopify for local and international businesses. If you want to take your Shopify store to the next level, send me a message. Check out Sanico Software here.
max15characters
Visitor
2 1 2

This is an accepted solution.

Thanks for the reply @sanico-software 

 

Looping the Refunds object solved the issue.

Below is the snippet that works:

{% for refund in refunds %}
  {{ refund.amount | money }}
{% endfor %}

 

sanico-software
Shopify Partner
56 0 10

Glad you solved it @max15characters and thanks for sharing the solution.

Dom Tripodi | Sanico Software
I am a Software Engineer and Shopify Expert based in Adelaide, Australia. I build ecommerce websites with Shopify for local and international businesses. If you want to take your Shopify store to the next level, send me a message. Check out Sanico Software here.