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
Name Your Price plugins allow you to be flexible in how much you charge for your products – to such an extent that you let your customers choose how much they want to pay. You can set minimum and maximum price ranges, if you wish, or leave the price completely open-ended. You can even allow customers to set the price for optional extras within the product rather than for the entire product. Use Name Your Price to accept donations, build trust, or run special promotions.
WooCommerce is a very flexible and, at times, complex ecommerce plugin for WordPress. But sometimes it doesn’t give you quite the functionality you’re looking for out of the box so you need to start looking for extensions to help you accomplish what you want to achieve. One example of this is allowing your customers to create personalized or customizable products by using a WooCommerce products addons plugin. 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.
This post came about as the result of a client’s specific need: they wanted to rent their gallery space on a weekly basis to artists who were staging exhibitions. The spec was simple enough: bookings should always start on the same day of the week and run in weekly blocks. My first thought was to use an existing bookings plugin – I thought that this requirement was bound to be covered by several plugins. However, I soon found that none of the main booking plugins for WordPress could accomplish what we required. Read more
By default, WooCommerce displays an ‘On Sale’ flash on any products that are on sale. You might wish to display other information to the customer, such as whether the product is featured or even if it’s out of stock. Read more