Title: Changing the &#8220;Fee&#8221; label
Last modified: March 10, 2022

---

# Changing the “Fee” label

 *  Resolved [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-the-fee-label/)
 * We’re using negative fee for membership discount and we’d like to change the 
   label.
 * Is this something that can be done via the plugin and if so, how? I tried to 
   browse the code a bit, but couldn’t figure out a way.
    We are not using any other
   fees, so we could be satisfied with hard coded translation.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [krokedilmartin](https://wordpress.org/support/users/krokedilmartin/)
 * (@krokedilmartin)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-the-fee-label/#post-15448551)
 * Hello Olli
 * Please send a screenshot where the text you would like to change is marked using
   a service like [https://pasteboard.co/](https://pasteboard.co/)
 *  [krokedilmartin](https://wordpress.org/support/users/krokedilmartin/)
 * (@krokedilmartin)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-the-fee-label/#post-15448631)
 * Is this the line you are looking for?
    [https://github.com/krokedil/klarna-checkout-for-woocommerce/blob/7239e5d6638e0f522aa48ffbc99e863f2b9f372c/classes/requests/helpers/class-kco-request-cart.php#L444](https://github.com/krokedil/klarna-checkout-for-woocommerce/blob/7239e5d6638e0f522aa48ffbc99e863f2b9f372c/classes/requests/helpers/class-kco-request-cart.php#L444)
 *  Thread Starter [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-the-fee-label/#post-15449811)
 * Yes, the fee name is what I’m trying to change. I have the following code:
 * `$cart->add_fee( 'Membership discount -5%', -$discount);`
 * But still the checkout labels it as “Additional fee” (“Lisämaksu” in finnish)
 * Here’s [image](https://t4682137.p.clickup-attachments.com/t4682137/f3d438c5-597c-4c3f-8691-08f44ce99c26/klarna_fee_label.jpg?view=open)
   to what I mean. On the WooCommerce side it shows correctly as “Membership discount-
   5%”.
 * I actually were very close, I did look at those rows, although previously didn’t
   notice the name field. I now tried to edit the code and it still didn’t change.
   This could relate to caching, but the there’s a comment before the $fee_item 
   array:
 * > // Add separate discount line item, but only if it’s a smart coupon or country
   > is US.
 * It is not a smart coupon nor are we in US. I’m not sure if that comment is actually
   relevant as I did not see any conditions for it. But considering that it A) Should
   use the given fee name B) Even hard coded value did not change it, I’m inclined
   to believe that it is indeed accurate.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing the “Fee” label’ is closed to new replies.

 * ![](https://ps.w.org/klarna-checkout-for-woocommerce/assets/icon-256x256.png?
   rev=3332778)
 * [Kustom Checkout for WooCommerce](https://wordpress.org/plugins/klarna-checkout-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/klarna-checkout-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/klarna-checkout-for-woocommerce/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/changing-the-fee-label/#post-15449811)
 * Status: resolved