Hide product in confirmation email but display as a "fee" under the taxes line

Hide product in confirmation email but display as a "fee" under the taxes line

Wise_Ape
New Member
5 0 0

I use an app called Chargify to charge a percentage fee to customers. This app creates a dummy product that doesn't show on the store and is hidden on the cart page, but the price is displayed as a "Fees" line above the subtotal.

 

I would like to do the same thing in the confirmation emails and all subsequent notification emails sent to the customer that display the items purchased. In my case it displays as another product they ordered but I want to hide it.

 

How can I hide a product in the confirmation email using liquid?

Replies 2 (2)
Wise_Ape
New Member
5 0 0
I am having a hard time finding where the correct point in the code is to
insert liquid like that? I am using a minimally modified version of the
default email provided by Shopify.

Also, how would I grab the price of the "fee" item? Such as below the taxes
line, If fee item is present, display the price or else just display
"$0.00" if there is no "fee" in the cart?
Wise_Ape
New Member
5 0 0

I have tried mamy variations of this but can't ger it to work. Where do I place the code you provided? Also, what code would do the function you wrote "<!-- Hide the line item -->"?