Quite often I recommend template overrides for customizing WooCommerce. Using template overrides provides a way to exercise a great deal of control over the layout and presentation of your WooCommerce shop, but they also come with the responsibility of maintenance – if functions are deprecated or removed from WooCommerce your template overrides are likely to break, or worse, cause […]
Add Quantity Inputs to Simple Products on the WooCommerce Shop Page
In an earlier post I provided a code snippet to allow you to add variation selections to products on the WooCommerce Shop page. That snippet also adds a quantity input to simple products as well as variable products. What if you only want to add the quantity input to simple products? Oddly, doing that is […]
Allow Customers to Select Variations on the Shop Page
By default, the WooCommerce Shop Page only outputs an “Add to Cart” button for simple products. It will output a “Select Options” button for variable products. This is probably very useful for most use-cases. On the other hand, perhaps you would like to give your customers the option to select product variations directly from the […]
WooCommerce Product Category Shortcode – Only Show Sale Items
Perhaps you would like to showcase items on sale in a given product category – how can this be done? It’s quite trivial to use the WooCommerce provided Product category shortcode to display only products in that particular category. Likewise, it is just as easy to implement the WooCommerce provided Sale Products shortcode. But how […]
Snippet UPDATED FOR WooCommerce 2.6 By default, WooCommerce Subscriptions allows for users to cancel their subscriptions via their “My Account” page via a “Cancel” button. Currently, there is no confirmation – the workflow goes something like this: press cancel button, subscription is cancelled. For some shop owners this may be undesirable – these shop owners […]
Remove Cost From WooCommerce Bookings Resource Dropdown
If you’re using customer selected resources with your WooCommerce Bookings products and those resources have costs then an indication of a price adjustment for those resources is output in the dropdown select. You can remove those if you would like. There are a couple of ways to do that. The first approach would be to […]
Use the Default WordPress Login Page Instead of “My Account”
For whatever reason, you might not want to use the login/registration form on the WooCommerce “My Account” page. This is possible with the addition of a small bit of code. Not sure what to do with code snippets? See What Do I Do With These Code Snippets?
Rearrange Product Add-ons & Product Variation Selectors
You have a variable product and that product also has Product Add-ons – but you want to change the display order, i.e. the add-ons should be presented to the viewer above the product variations. How can this be done? Template overrides is one answer. Here is the default output – the product variations come first, […]
Stay tuned for WooCommerce tips & tricks and other related topics.
- « Previous Page