WooCommerce

Checkout Fields Tutorial

This is all in one tutorial about WooCommerce checkout fields. We are going to edit WooCommerce checkout page by removing fields, renaming them, making them optional or required and of course, we are going to add a custom field to checkout as well.

Well, let’s get started. But first of all, let me introduce you woocommerce_checkout_fields filter hook. Most of the things we are going to do with its help.

Bulk Change Custom Order Status

A couple tutorials ago we created a custom order status. There were a lot of questions in comments section about adding it to bulk actions.

Let’s do it now.

To add anything into bulk actions dropdown we need to use bulk_action-{screen id}. A little more details about it is in bulk actions tutorial. But now when we are going to use it for orders page, its screen id will be edit-shop_order. So, the hook is going to be bulk_action-edit-shop_order.

Ways to Restrict Content in your code with WooCommerce Memberships

How to Get Payment Gateways Programmatically

Create a Custom Order Status

WooCommerce Memberships: How to allow viewing all front end restricted content to any user or by a user role.

Custom Plan Settings Tabs in WooCommerce Memberships

In this tutorial I would like to share with you how I figured in out the way of creating custom settings tabs on “Edit Memberships Plan” pages.

I needed to add a custom tab there for settings of my Simple Mailchimp Sync plugin.

And right now in this tutorial we are going to create a simple tab like this:

The good news is that WooCommerce Memberships plugin is customizable with hooks, actually there are two of them we need:

  • wc_membership_plan_data_tabs – allows to filter an array of tabs, remove or add items into it.
  • wc_membership_plan_data_panels – this hook will help us when we need to display HTML of our tab.