Zum Inhalt springen Zur Seitenleiste springen

Schlagwörter: 

Dieses Thema enthält 0 Antwort, hat 0 Stimmen.

Zuletzt aktualisiert von hagenD Vor 11 Monaten, 4 Wochen.

Assistiert von: Mihai Apetrei.

Autor Beiträge
Januar 30, 2025 um 12:18 p.m.

hagenD

Background of the issue:
I am trying to add a filter in functions.php to change the in-stock text for WooCommerce products. The code I used is: add_filter('woocommerce_get_availability', 'ecommercehints_change_in_stock_text', 10, 2); function ecommercehints_change_in_stock_text($availability, $product) { if ($product->is_in_stock()) { $availability['availability'] = __('Auf Lager - in 1-3 Tagen bei Dir', 'woocommerce'); } return $availability; } I want to translate 'Auf Lager - in 1-3 Tagen bei Dir' but cannot find it via String Translation. The issue can be seen at: versteckter Link

Symptoms:
I expected to see the string 'Auf Lager - in 1-3 Tagen bei Dir' in String Translation, but instead, I got: NO STRING.

Questions:
Why can't I find the string 'Auf Lager - in 1-3 Tagen bei Dir' in String Translation?
How can I translate the custom in-stock text in WooCommerce?