• Resolved Olli Kousa

    (@kousa)


    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)
  • Hello Olli

    Please send a screenshot where the text you would like to change is marked using a service like https://pasteboard.co/

    Thread Starter Olli Kousa

    (@kousa)

    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 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.