Display WooCommerce search results in FacetWP page

To make the search results appear on your facet page, add a search facet to the page and then just add these to your functions.php: YOUR_FACET_SEARCH_WIDGET_NAME – with the name of your facet YOUR_RESULT_PAGE – with the slug of you facet page The same thing can be done for the normal WordPress search form


WooCommerce add attribute to multiple products (programmatically)

This snippets was used in winkel-centrum.nl, I needed to adjust an import and add colors found in the title as attributes. I had imported the products and wanted to extract a word from the title to add as attribute in the product. I used a shortcode because I wanted to visualisy the products I was […]


WooCommerce Checkout require number if not ‘local pickup’

In the Netherlands WooCommerce removed the second address line. This made the error rate for people failing to insert the housenumber rise. I had two options, put the second line back and make it rweuired, or check if the one line that is there has a number in it..



Use costs shippingclass for all products in WooCoomerce cart

In a situation where you want the shipping costs determinined by a shipping class to apply for all products in the cart (and not use the highest price). /** * When one of the products has a ‘free-shipping’ class wich gives a discount on shipping * => and you want it to apply to all […]


Checkout: custom date field

In this situation we want a custom field on checkout which has a jQuery Date selector: /** * enqueue jquery datepicker script * * If is not admin (backend) and the page is * woocommerce checkout add the field */


Checkout: give a discount for local pickup

I had to add a discount for local pickup and at first this looked easy. You can set the costs to be a negative amount. But if the subtotal for the order was smaller then the discount, they got the order for free. So I wanted the discount only if the order subtotal was more […]


Enhanced order list for WooCommerce

We have developed a small plugin the enhances the WooCommerce orderscreen with order products and specified order costs.. for the moment. More enhancements, filters and search options will be available soon. Check out the WordPress repository


Remove WooCommerce orders

Sometimes you need to clean up. One way of making your tables smaller is to delete data that is not used anymore,.. old orders in WooCommerce could be an option.