One of the features of the WooCommerce Memberships extension is the ability to offer purchasing discounts to your customers if they are a member of a qualifying membership plan. Many site owners sell subscription products and in many cases these subscription products are configured with a sign-up fee to cover on-boarding costs for the subscriber. Since […]
Bookings Resource Dropdown Behaviour
If you’re using WooCommerce Bookings and your bookable product has customer selected resources, you may find that customers are inadvertently choosing the incorrect resource since, by default, the booking form outputs the resources dropdown selector with one resource pre-selected. You can, however, hook in to a Bookings provided filter named booking_form_fields and effectively de-select the default resource, thereby […]
A Better Way to Add Quantity Inputs on the WooCommerce Shop Page
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 […]
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 […]
Add JavaScript Confirmation for WooCommerce Subscriptions Cancellation
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?