I am trying to show get_customer_note(); in woocommerce booking plugin
Everything is working but It is not getting customer notes from orders.
My codee
<p class="form-field form-field-wide">
<label for="excerpt"><?php _e( 'Customer provided note', 'woocommerce-bookings' ); ?>:</label>
<textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt" placeholder="<?php esc_attr_e( 'Customer notes about the order', 'woocommerce' ); ?>">
<?php
$customer_note = $order->get_customer_note();
echo wp_kses_post( $customer_note->post_excerpt );
?></textarea>
</p>
It is not getting customer notes from woocommerce.
3
Answers
I fixed the issue with this code:
I just want to make it so that I can save/update customer notes from woocommerce-booking plugin. instead of going to woocommerce order page. Any ideas???
Get all Customer notes by order id
Get Shipping Customer notes