Handling EU VAT on WPJobManager.com with WooCommerce

Ah the EU. Always with their bright ideas. If you haven’t heard about the upcoming changes surrounding EU VAT, first off, where have you been hiding? To put it simply, essentially they require everyone selling digital products to customers in the EU to charge EU Tax based on the customer location, regardless of where your businessContinue reading “Handling EU VAT on WPJobManager.com with WooCommerce”

The WooCommerce 2.1 notice API

If you’ve built a plugin for WooCommerce before you may have come across the ‘message’ functionality which let you add messages (or errors) to the frontend using: $woocommerce->add_message( ‘Hi there’ ) $woocommerce->add_error( ‘You bafoon’ ); Part of the development of WooCommerce 2.1 was refactoring the main WooCommerce class which involved moving out unrelated methods (suchContinue reading “The WooCommerce 2.1 notice API”

Problems with cart sessions and WooCommerce

I was asked about WooCommerce’s session handling at WCEU (where I seized up; darn social phobia) so I thought it would be good to give a brief history of our handling of sessions, and how things are changing in 2.1. Cart sessions have been a long standing source of frustration in WooCommerce. To clarify, theContinue reading “Problems with cart sessions and WooCommerce”

What I learnt whilst tackling the box packing problem for WooCommerce Shipping

Back in January we had several shipping methods for WooCommerce for getting quotes from APIs such as UPS, USPS and FedEx. Because these APIs expected ‘packages’ to quote on, it was necessary for items to be ‘packed’ into packages with a weight and dimensions. The original extensions attempted to pack items by attempting to stackContinue reading “What I learnt whilst tackling the box packing problem for WooCommerce Shipping”

Two zero zero zero zero zero zero

Wow, what a milestone. WooCommerce has today hit 2 million downloads, just 6 months after hitting a million. How did we get here? Team WooCommerce has grown from 2 to 11 employees over the past 2 years, we’ve made 63 releases, closed 3735 Github issues (out of 3779), and solved over 30k support tickets. SinceContinue reading “Two zero zero zero zero zero zero”

Deprecating plugin functions and hooks (and what we did in WooCommmerce)

Sometimes code needs to change; without doing so you can end up with a non-consistent, bloated mess. When changing things such as functions and hooks however, you do have to consider backwards compatibility so that code which relies on the old things doesn’t just stop breaking without explanation. In WooCommerce major releases we often haveContinue reading “Deprecating plugin functions and hooks (and what we did in WooCommmerce)”

Manipulating shipping packages in WooCommerce 2.1

Up until 2.1, each order had to be shipped via a single method with a single price. 2.1 changes that and allows each package to be quoted and shipped individually. By default, each order is a package, so to get this new functionality to kick in you must split it into multiple packages first. FilteringContinue reading “Manipulating shipping packages in WooCommerce 2.1”