Writing a WooCommerce Shipping Method

Highway at Dawn

A few months ago I wrote a plugin that connects Spee-Dee Delivery, a shipping services for the upper midwest, and WooCommerce. The plugin is going through the audit process right now and should be launched shortly. While the whole process has taken a few months in terms of time writing code the project has only taken ~40 hours. About 20 of which have been doing QA testing to make sure it's as intuitive as possible and doesn't need to be done unless you're planning on selling your plugin.

Continue Reading…

How to Create an Invoice Using WooCommerce

The one page checkout process in WooCommerce is pretty darn slick. You can beautifully sell all sorts of products. We know because we use it ourselves on WooThemes.com. But there are plenty of special circumstances where you don't want a customer to go through your normal checkout process.

  • Sometimes you may want to give special pricing to a customer
  • Sometimes you may want to send a direct payment link to your customers / clients
  • Sometimes a customer may want to add on something extra to an existing order before you ship it
  • And sometimes you may have products which aren't in your public catalog but you want to give them to some customers

In all of these cases you can easily create an invoice and have the customer pay for it using WooCommerce.

Continue Reading…

Display Currency Code Infront of Symbol in WooCommerce

WooCommerce has a ton of options for multiple currencies right out of the box. WooCommerce comes bundled with dozens of different currencies you can use in your store, there are snippets to add extra currencies, there's also have a really nice Currency Converter Widget to help you display different currencies in your store.

By default WooCommerce will display the currency symbol with the product. You can do all sorts of things like choosing the position of the symbol (some currencies the symbol goes on the right of the number), you can change the decimal separator (some currencies prefer commas to decimal points), and you can change the number of decimal places (some currencies like Yen don't have decimals). We have docs for all of these settings.

This works great for 99% of the stores out there. There are a few exceptions that might require a couple snippets of code to display it exactly the way you want.

Continue Reading…

Useful Shipping Functions for WooCommerce

One of the things any good framework should do is provide utility functions. Things that make developing for that framework easier and consistent. For an e-commerce framework that would be things like rounding prices, calculating taxes, and getting shipping quotes. If you've ever wanted to dig into WooCommerce there's a really easy guide to creating your own shipping method and I highly recommend you start there. It also happens to be a lot easier than building your own payment gateway. 🙂

Continue Reading…