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
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 […]
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..
Stil a work in progress, but I found it hard to get good examples. If you are stuck in creating your script good chance my script gives you hints.
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 […]
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 */
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 […]
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
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.
The following code can be pasted in your functions.php file and works immediate.