Add Tip Amount to Order Confirmation Email

Solved
BigNate
Tourist
3 1 2

We recently added the new tip feature to our checkout process.

I want to display the tip amount in the email confirmation that is sent to the client and to the email notification we receive.

Right now we have to go into Shopify to glean the tip amount out so we know how much to pass along to our Service Reps.

Is there a way to display this tip amount the template? I couldn't find the Liquid Variable on the Shopify support documentation.

Any "tips" would be appreciated!

Thanks,
Nate

Accepted Solution (1)

Accepted Solutions
BigNate
Tourist
3 1 2

This is an accepted solution.

That did the trick Stubbs! I added this little snippet to my New Order template.

<p> Tip Amount: {{ order.total_tip | money }} </p>

So easy and works like a charm.

Thanks very much!

 

View solution in original post

Replies 4 (4)
BStubbs
Shopify Partner
135 16 59

Hi @BigNate , welcome to the forums!

I think there is a `total_tips_received` field in the `order` object. You might be able to access that in Liquid?

Was this helpful? Press like!
Did it fix the problem? Mark it as the solution for others!
Buy me a beer? Well, sure!
BigNate
Tourist
3 1 2

This is an accepted solution.

That did the trick Stubbs! I added this little snippet to my New Order template.

<p> Tip Amount: {{ order.total_tip | money }} </p>

So easy and works like a charm.

Thanks very much!

 

ChrisCTD
New Member
1 0 0

Where do you add it. My HTML has a million end if's totals etc.

BigNate
Tourist
3 1 2

I added it to the bottom of the New Order template. Our staff wanted to see the tip in this email notification, it saves them from having to got into each order to get the tip.

This snippet is at the very bottom under all the other code. It breaks down the what the customer purchased, if they used a promo code and if they included a tip.

<p><b>Promo Code Used:</b> {{ discounts.first.code }}</p>
<p> Original Product Price: {{ line.price | money }}</p>
<p>Discount Amount Applied: {{ discounts.first.amount | money }}</p>
<p> Tax Paid: {{ tax_price | money }}</p>
<p> Tip Amount: {{ order.total_tip | money }} </p>
<p>Total Amount Paid: {{order.total_price | money}}</p>
<p></p>