WooCommerce

My Account Menu

It is a complete my account menu customization guide. In this tutorial I will explain you how to remove links from the menu properly, how to add pages with custom icons there and how to reorder menu elements.

WooCommerce Default My Account menu.
This is how “My Account” menu looks by default with Storefront theme active.

Add Order Meta to Emails

We already discussed on my blog how to add custom order meta to view order page or to order details metabox in WooCommerce admin. It is time to add the same custom fields to WooCommerce emails.

We are going to use primary woocommerce_email_order_meta action hook for that. There is also another hook – woocommerce_email_order_meta_fields, we will also take a look on it, but I recommend you the first one.

How to Add Custom Fields to Order Details Page

In this tutorial I am going to talk about customers order details page, that is located in My Account > Orders > View Order. In case you are looking for a solution how to add custom fields to edit order page in WordPress admin, there is a separate tutorial for that.

Add Fields to Edit Order Page

First things first, if you need to display custom fields in View Order page in My Account, you need another tutorial. In this tutorial we are going to do it in WordPress admin only.

Here is what we are going to create:

Add custom editable information to the Order Details

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