Title: Order comments label error
Last modified: September 11, 2020

---

# Order comments label error

 *  Resolved [itsupporten](https://wordpress.org/support/users/itsupporten/)
 * (@itsupporten)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/order-comments-label-error/)
 * Hello! The label for the order comments on checkout, are not able to be translated
   to Danish. Here is the code which i have implemented into functions.php:
    (heavily
   inspired from the woocommerce docs: [https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/](https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/))
 * add_filter(‘woocommerce_checkout_fields’, ‘custom_order_notes’);
 * function custom_order_notes( $fields ) {
    print_r($fields[‘order’][‘order_comments’]);
   $fields[‘order’][‘order_comments’][‘label’] = ‘Bemærkninger’; print_r($fields[‘
   order’][‘order_comments’]); return $fields; }
 * The first variable dump shows me that the label has been translated correctly,
   however it is not shown on the checkout page. Instead the label is: “Order notes”,
   which i guess is the English default label.
    I then edit the label into “Bemærkninger”
   and that is shown correctly in the next variable dump. I also noticed that the
   placeholder for the textarea, has been translated correctly and it is also shown.
   So i need help with outputting the correct and translated label for the order_comments
   instead of the default “Order notes”.
 * PS: i tried editing the text for the placeholder and completely delete the order_comments(
   using unset) and neither worked for me.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Forder-comments-label-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [itsupporten](https://wordpress.org/support/users/itsupporten/)
 * (@itsupporten)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/order-comments-label-error/#post-13399246)
 * I figured it out, by editing the label in a plugin named Checkout Forms.
    -  This reply was modified 5 years, 8 months ago by [itsupporten](https://wordpress.org/support/users/itsupporten/).

Viewing 1 replies (of 1 total)

The topic ‘Order comments label error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [checkout](https://wordpress.org/support/topic-tag/checkout/)
 * [customfield](https://wordpress.org/support/topic-tag/customfield/)
 * [development](https://wordpress.org/support/topic-tag/development/)

 * 1 reply
 * 1 participant
 * Last reply from: [itsupporten](https://wordpress.org/support/users/itsupporten/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/order-comments-label-error/#post-13399246)
 * Status: resolved