1. Home
  2. Docs
  3. Advanced Shipment Tracking
  4. Custom Order Statuses

Custom Order Statuses

Rename the “Completed” Order status to “Shipped” or create new order status “Shipped” – in many cases, the completed order is WooCommerce means that you shipped the order or you can create a new order status Shipped.

The AST plugin allows you to enable a “Delivered”, “Partially Shipped” and “Updated Tracking” custom order statuses. You can set each custom status font and label color and you can enable email that will be sent to your customers once the order is changed to that status.

The custom order statuses will be included in WooCommerce reports. We also add the option to change orders to these statuses from the bulk order actions in orders admin and single order admin.

PLEASE NOTE – If you use one or more custom order status, if you deactivate the AST plugin, you must register this order status in function.php in order to view these orders in the orders admin. You can find the code snippet to use in functions.php here or you can update all your orders that use custom statuses back to “completed” before deactivating the plugin.

Customize the Delivered order status email

  • Receipts – Enter emails use variables such as {customer_email}. Multiple emails can be separated by commas.
  • Email subject – available variables – {site_title}, {order_number}
  • Email heading – available variables – {site_title}, {order_number}
  • Email content  – available variables – {site_title}, {customer_email}, {customer_first_name}, {customer_last_name}, {customer_username}, {order_number}
  • Display tracking details – display the shipment tracking information
  • Display order details – display the WooCommerce order items table
  • Display Shipping Address – display the order shipping address
  • Display Billing Address – display the WooCommerce billing address
  • Enable Google Analytics tracking
  • Google Analytics link tracking available if GA is enabled) – This will be appended to URL in the email content – e.g. utm_source=ast&utm_medium=email&utm_campaign=delivered
blank

Delivered email Hooks

wcast_email_before_email_content ($order, $sent_to_admin, $plain_text, $email);wcast_email_before_order_table ($order, $sent_to_admin, $plain_text, $email);wcast_email_after_order_table ($order, $sent_to_admin, $plain_text, $email);wcast_email_after_email_content ($order, $sent_to_admin, $plain_text, $email);

blank

Customize the custom Partially Shipped and Updated Tracking emails

  • Email subject – available variables: {site_title}, {order_number}
  • Email heading – available variables: {site_title}, {order_number}
  • Email content – available variables – {site_title}, {customer_email}, {customer_company_name},{customer_first_name}, {customer_last_name}, {customer_username}, {order_number}
blank

Overwrite the custom order status email template in theme

From this section you can override the a custom order status template in their theme or child theme. If you override this template than it will not use any of the delivered email settings from the AST email customizer.

blank

Code Snippets

Create custom order status

If you use one of the AST’s custom order statuses and you deactivate the plugin, orders that you applied a custom order status will not display on your orders admin, in order to be able to view these order, you will need to register the custom post type in functions.php:

Was this article helpful to you? Yes No

How can we help?