Tweaking the WooCommerce Order Admin: Searching For Custom Fields

The WooCommerce Order Admin allows you to search for orders by the following fields: order key billing first name billing last name billing company billing address 1 billing address 2 billing city billing postcode billing country billing state billing email billing phone order items But what if you want to search by another order field? Perhaps the order total? Well it’s as easy as adding something like the following to your themes functions.php: function woocommerce_shop_order_search_order_total(…

Read More

How to Add Dimension Units to WooCommerce

This post was prompted by a recent question on the blog regarding how best to add custom units to the WooCommerce dimensions or weight options. While not a difficult thing to do, adding units is not trivial either if you don’t have much experience with PHP, WordPress or WooCommerce. This would be useful for adding, for instance, the foot as a dimension measurement to WooCommerce, which seems to be the most glaring omission. I’m guessing…

Read More

How to Use WooCommerce’s Lightbox

[stag_alert style=”grey”]Update: As of version 2.0, WooCommerce is no longer packaged with the excellent FancyBox (I guess due to some licensing issue or something). I’m leaving this article up for those still on WC 1.6.6 and previous, and for historical purposes. To learn how to make use of the new WooCommerce-2.0 compatible lightbox, read on in the new and updated article How to Use WooCommerce Lightbox Part 2[/stag_alert] WooCommerce comes with Fancybox, a Lightbox implementation,…

Read More

WooCommerce reviews + tutorials

How to Set WooCommerce Virtual Order Status to Complete After Payment

Please note that this snippet will work for WooCommerce 2.0 and 2.1, but not 2.2+ – the order status structure has changed in version 2.2 to support refunds. If we post an updated version, we’ll link to it here when published. WooCommerce virtual orders can be automatically marked as ‘completed’ after payment with a little bit of code added to a custom plugin, or your themes functions.php file. By default WooCommerce will mark virtual-downloadable orders…

Read More

WooCommerce extension updates & releases

WooCommerce Sequential Order Numbers Pro Released

Today marks the release of the WooCommerce Sequential Order Numbers “Pro” plugin, the first of many practical and useful WooCommerce extensions to be released by Fox Run Software. If you don’t like the essentially random order numbers that WooCommerce uses, and you perhaps want to customize them a bit as well, then this plugin could be a good fit for you. The Pro version of the plugin builds upon the limited functionality of the free…

Read More

WP Development

WordPress Settings API Hidden Field

This short article covers one way of creating hidden fields with the WordPress Settings API. This is useful for more than just creating hidden input fields; for instance I used it when I wanted to render a number of checkboxes in a single field, yet still have the checkbox options managed by the Settings API. The WordPress Settings API The WordPress Settings API is a great, if poorly documented addition to WordPress. The two best…

Read More

WP Development

Add a WordPress Custom Bulk Action

Good news! There are now core APIs to do this as of WordPress 4.7. You can read more here. Like me you probably woke up this morning assuming that adding a new bulk action to WordPress would be as easy tracking down the correct filter or implementing the right action hook. If so, then you might have had a rude awakening when you attempted to make use of the promising-looking filter named bulk-actions-screenid and failed….

Read More