Add custom fields to WooCommerce Order
- This topic has 9 replies, 3 voices, and was last updated 3 weeks, 5 days ago by
Peter.
-
AuthorPosts
-
January 20, 2026 at 9:57 PM #49635
Francesco
ParticipantHi there!
I am trying to add custom fields to WooCommerce Orders with MetaBox but it is not working: custom fields are displayng for products but not for orders.
Do you have any suggestion?January 20, 2026 at 11:21 PM #49642Peter
ModeratorHello,
Please use the option WordPress posts storage (legacy) for order on the settings page WooCommerce > Settings > Advanced > Features, instead of HPOS (High-performance order storage) and recheck the issue.
Let me know how it goes.
January 21, 2026 at 8:32 PM #49648Francesco
ParticipantOk, now custom fields are showing correctly, thank you!
Do you think it would be possible to complete this order custom fields during the WooCommerce checkout process?January 22, 2026 at 7:47 PM #49655Peter
ModeratorHello,
No, it isn't possible. Meta Box will create input fields in the admin area, the user can fill the fields with values and output values in the frontend. We don't support adding field value on the Cart or Checkout page in the frontend.
Thanks.
January 23, 2026 at 12:20 AM #49657Francesco
ParticipantOk, thanks.
And what about editing custom fields linked to each order in the single order detail page located in the woocommerce account page?
It would be possibile through the metabox frontend submission extension?February 3, 2026 at 8:08 PM #49717Francesco
ParticipantHi there! Could you please help me with this?
February 3, 2026 at 10:57 PM #49723Peter
ModeratorHello,
Yes, it is possible. If you can pass the order ID to the attribute
object_idof the frontend form shortcode, you can edit the custom field of the order in the frontend on any page. Here is an example:[mb_frontend_form id='order-custom-fields' post_type="shop_order" object_id="1234"]Please read more about attributes in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/
February 15, 2026 at 5:50 AM #49756[email protected]
Participant"Do you think it would be possible to complete this order custom fields during the WooCommerce checkout process?"
I know this is an older post, but it depends on what you are wanting to send to the cart and checkout, but yes you can with a bit of custom code.
Cheers
February 17, 2026 at 4:15 AM #49758Francesco
ParticipantThanks a lot Peter, I have done it!
A few more questions:
- is there a way to let Woo Clients only edit the existing fields and not adding more clonable fields to the group?
- is there a way to add custom classes to forntend submission form buttons?
- is there a way to customize the Submit button?Thanks a lot.
Best regards.February 23, 2026 at 9:36 PM #49764Peter
ModeratorHello Francesco,
1. No, there isn't an option to edit the existing field only without adding more cloneable fields.
2, 3. You can use the filter hook
rwmb_frontend_submit_buttonto customize the submit button. Please follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#form-hooks -
AuthorPosts
- You must be logged in to reply to this topic.