• Resolved mixfreak

    (@mixfreak)


    Hello,

    I am currently working on a new page where WooCommerce is running with Gutenberg blocks instead of the shortcode option.

    I am unable to change the following text in the shopping cart.

    When I switch to the shortcode option, the following code works. However, I would like to use the new layout/design with the Gutenberg blocks.

    add_filter( 'gettext', 'my_woocommerce_translation' );
    function my_woocommerce_translation( $translation ) {
      if ('Gutschein hinzufügen' === $translation ) {
      $translation = 'Rabattcode anwenden';
      }
    return $translation;
    }

    Do I have another option to change the text here? Maybe somehow through CSS?

    Thank You

    • This topic was modified 7 months, 1 week ago by mixfreak.
    • This topic was modified 7 months, 1 week ago by mixfreak.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there, @mixfreak! Thanks for contacting us. I’m happy to help you.

    Have you tried plugins such as Say What? or Locotranslate? They can help you with this.

    You can also check more information about how translations work here.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change “Add Coupon” text’ is closed to new replies.