WooCommerce
-
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 business…
-
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 (such…
-
Why we changed the dashboard widgets in WC 2.1
WooCommerce 2.1 has a new dashboard widget which replaces the previous version’s “Right now”, sales, and recent order widgets. Some users will like this change, others may ‘miss’ the old widgets. In this post I’ll explain the reasoning behind the changes.
-
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, the…
-
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 stack…
-
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. Since…
-
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 have…
-
Using the new Credit Card form in WooCommerce 2.1
WooCommerce 2.1 includes a standardised credit card form which payment gateway plugins can now utilise for a consistent UI. Using the jQuery Payment script (built by Stripe) inputs are formatted as you type which also helps prevent user error.
-
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. Filtering…