WooCommerce – update product price programmatically

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

WooCommerce Name Your Price

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.

Read more

How to personalize WooCommerce products with additional options

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

Add WooCommerce tags to your plugin

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.

Booking plugins for WordPress

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