Apply Coupon Translation

Always when I´m using Woo Commerce on my Pro-Sites it keeps not translating the “Apply Coupon”. This seems to a generel problem in the forum. I tried with “Say what” plugin but it doesn´t work either.

Can u help me out?

U can add this product to the cart to see my problem: http://neu.bennisnest.com/produkt/bennis-nest-babybett-aus-zirbenholz/

thx in advance

Hello Nikolaus,

Please install and activate the child theme and login through FTP then edit the functions.php of the child theme then add this code:

  add_filter( 'gettext', 'translate_x_strings', 20, 3 );

  function translate_x_strings( $translated_text, $text, $domain ) {
  
          switch ( $translated_text ) {
  
              case 'Apply Coupon' :
  
                  $translated_text = esc_attr__( 'Apply Coupon Translation', '__x__' );
                  break;
  
          }
  
      return $translated_text;
}

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.