Is it possible to add the Woocommerce order notes field before the checkout form page?

I’ve added field by action

function addCommentBox(){
    echo '<p class="form-row form-row notes" id="order_comments_field"><label for="order_comments" class="">Order Notes</label><textarea name="order_comments" class="input-text " id="order_comments" placeholder="Notes about your order, e.g. special notes for delivery." rows="2" cols="5"></textarea></p>';
}
add_action('woocommerce_proceed_to_checkout', 'addCommentBox', 1);

Read more here: Order notes on cart page


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: