On our Staging-Site for ergotopia.de I am trying to change the button text of the dropdown minicart, like you see in picture. To reduce confusing: On ergotopia.de its the right text, but since updates (which we test on our Staging) it was changing the buttons text, and I am unable to change the text.
I tried the following things, without success:
- translations via loco-translate
-
functions.php with following code:
add_filter('gettext', 'translate_text'); add_filter('ngettext', 'translate_text');
function translate_text($translated) { $translated = str_ireplace('Kasse', 'Weiter zur Kasse', $translated); return $translated; }
-
In Child Theme (childtheme\woocommerce\includes\wc-template-functions.php) I edited the file in line 1487:
function woocommerce_widget_shopping_cart_proceed_to_checkout() { echo '<a href="' . esc_url( wc_get_checkout_url() ) . '" class="button checkout wc-forward">' . esc_html__( 'Weiter zur Kasse', 'woocommerce' ) . '</a>'; }
Do you know how to change it?