This is a quick solution to how to disable out of stock variations in variation select fields. By default, WooCommerce doesn’t grey out any variations that are out of stock – it allows the user to select the variation first, then lets them know it’s out of stock. Read more
There are many reasons you might want to update a WooCommerce product price programmatically. For instance, in Bookings for WooCommerce the booking (product) price is set dynamically according to certain parameters – e.g. length of stay, etc. In Product Extras, you can specify extra fields for your products (like checkboxes and text fields) which will add extra cost to the product when selected. In this article, I’ll share some simple code to achieve this. Read more
If you are selling WordPress themes or plugins, no doubt you’re always looking for ways to add value to your product and encourage more sales. One common method is to create different plans for your product which limit the number of times a customer can activate it. However, this method can actually reduce your scope to increase your profitability.
In this post, I’m going to show you how you can use the Software Licensing extension for Easy Digital Downloads to make some features of your plugin available only to users on premium plans – and all without having to create and manage different versions of the product. Read more
I wasn’t aware of these two tags for WooCommerce till I noticed one of my plugins was reporting as not tested with the latest version of WooCommerce. In your main plugin file, not the readme, you can add:
* WC requires at least: 2.5 * WC tested up to: 3.1
These declare the minimum version of WooCommerce that your plugin requires and the latest version it’s been tested against.
More information here.
There are a number of standard WordPress functions to help you add navigation buttons to your posts, notably
the_post_navigation which you can use on a single post to print links to the next and previous posts. However, next and previous are defined by publication date – but what if you want to get the next and previous posts according to some other parameter? Read more
You may have seen some discussion of Merlin recently. Merlin is described as a “highly configurable WordPress theme setup wizard built for theme developers”. From the short video I’ve seen, Merlin looks beautiful. It’s got some nice illustrations and slick animations, the content is brief and to the point, and the whole process looks very neat.
Inspired by Merlin, I started thinking about what I’d like from a theme set-up wizard. This post outlines the wizard which I’m calling Whizzie. Read more
One of the most frustrating aspects of selling products online is the fact that you can’t always tell who you’re selling to or where they’ve come from. As a personal goal this year, I want to improve how I market and promote my products and the first place to start, I think, is by improving my understanding of who’s arriving on my site and what they’re doing when they get there. Step one of that process is to set up ecommerce tracking on Google Analytics. Read more
By default, WordPress allows you to filter posts and pages by a couple of different parameters: namely, by publication and by category. Let’s say though that you’ve added a new meta field to your post or you’ve even created a whole new post type with all kinds of new meta fields. It would be nice to be able to filter your post type by one or more of those meta fields. Read more