Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
hans harkink

Custom field on Order page

I want to use a “type “custom field on the woocommerce order page. I want to create a button to create a shipping label, a button to print it and other buttons. How can i do this with admincolums.

3 weeks ago
Stefan van den Dungen Gronovius
Developer

It sounds like you may not need any of our plugin’s features for that column. If that’s the case, I recommend creating your own custom column for WooCommerce, using the standard WordPress approach, tailored to your use case with WooCommerce HPOS orders, since that is much easier than writing a custom column for our plugin.

Once your custom column is registered, you should see it listed under the “Default” section when adding a new column to the page. Implementing it the WordPress way ensures that your logic will continue to work independently of our plugin.

If your goal is simply to display a custom field (such as order meta in the context of HPOS orders), you can use our Order Meta column. Just keep in mind that this column doesn’t support custom action logic like the one you’re describing.

2 weeks, 4 days ago

You must be logged in to reply to this topic.