Splitting Shipping Packages in WooCommerce

Posted on February 12, 2016

In WooCommerce version 2.1 a new feature was introduced that allowed one order to have multiple shipping packages. Having multiple shipping packages can come in handy in various situations. One that comes to mind at first is when you actually have multiple packages, for example when you can’t ship items together, or when someone has […]

Adding a custom WooCommerce product type

Posted on December 16, 2015

I have used custom product types a couple times in the past for different projects where it made sense (for example for a product rental plugin I created both a ‘simple rental’ and ‘variable rental’ product). It is only recommended to create a custom product type when it is really necessary and it doesn’t fit in the […]

Apply Free Shipping for Specific Products in WooCommerce

Posted on December 03, 2015

Applying free shipping on orders can be great incentive for (potential) customers to order on your website. In some cases it is not possible to ship all products free and you only want to ship a specific product or group of products to ship for free. In this post I will go through setting this […]

Only show free/cheapest/most expensive shipping in WooCommerce

Posted on November 19, 2015

You may have setup different shipping rates in your WooCommerce store. What you want and need to charge for shipping is different in each webshop and it is very hard to set things up exactly the way you need it. In this post I will show you how you can only show the cheapest shipping method or the […]

Automatically link Post Titles to their pages (in the content)

Posted on October 28, 2015

For my other blog (Code Quality Code) I’m referring a lot of times a other post as they are all connected to each other. Of course I wanted to automate things and not manually link every time I mention another blog post. To accomplish that I’ve made a small peace of code that will automatically […]

How to add template files in your plugin

Posted on October 21, 2015

If you’ve worked with WooCommerce before on a website then chances are you’ve also had to copy some of their templates files to your own theme in order to make sure structural changes to the page. This is a great system if you need to output HTML and still want to allow the end-user to […]

Enable/Disable payment gateways for specific shipping methods

Posted on October 14, 2015

There are different reasons why someone wants to specifically enable or disable specific payment gateways for some shipping methods. In this post I will show you how you can enable or disable payment gateways based on the shipping method with a code snippet. Disable payment gateways for shipping methods For this example I will disable […]

Keeping a different (sub-) menu highlighted in WordPress

Posted on September 30, 2015

I’ve already written dozens of WordPress plugins. In some of these plugins I use a Custom Post Types to allow users to setup and configure certain elements the way they want. When, for example, building a WooCommerce extension and I need a settings area, this could go under the WooCommerce -> Settings pages by creating a new page as […]

How to include your WordPress.org plugin download count

Posted on September 25, 2015

My current number of downloads is; For my new website that I launched a couple months ago I included a ‘live’ download counter from my WordPress.org plugins. There are a couple ways of adding a counter like that on your site, and one way would be to download and use a existing plugin from the […]