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
WooCommerce gives you the option to provide a shorter product description (like an excerpt) as well as a longer description. In most themes, the short description appears in the product summary area along with the product title, price and add to cart form, next to the images. The long description appears in the tabs underneath. Read more
The mini-cart is a scaled-down version of the WooCommerce cart. It’s the template that the WooCommerce Cart widget uses to display the user’s cart in the sidebar or footer. In a client build, I decided to use the mini-cart template to display the user’s cart when they hover over the cart icon in the navigation menu. However, I found that with caching plugins also running, it’s possible to run into problems with the mini-cart not displaying the correct information to users – in effect, they’d be viewing the contents of other users’ carts. Read more