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.
Lets say you want an attachment.pdf added to an completed order mail in WooCommerce if certain products are in the order. How do you add and attachment in that case? With the following code you be able to select one of the mails send in the proces and add the attachment if one of the […]
Plugin that lists and compares products. WooCommerce is a very nice free plugin for WordPress. WooCommerce Pud is a complementary plugin that offers two abilities: to list products and compare them. Both functionalities are not standard in WooCommerce and are not represented in the WordPress repository very well. WooCommerce Pud tops it and combines them: WooCommerce List AND Compare. […]