Order tracking is an important part of any eCommerce website. It allows customers to track the status of their orders, and it helps to keep customer service representatives informed about the status of each order. There are a few different ways to set up an order tracking page in WooCommerce.
One way to set up an order tracking page is to use the WooCommerce Order Tracking plugin. This plugin allows you to add a tracking code to each order, and customers can then enter that code on the order tracking page to see the status of their order. The plugin also allows you to set up email notifications so that customers can be notified when their order status changes.
Another way to set up an order tracking page is to use the WooCommerce Shipment Tracking plugin.
This plugin allows you to add tracking information to each order, and customers can then see the status of their shipment on the order tracking page. The plugin also allows you to set up email notifications so that customers can be notified when their shipment arrives.
You can also set up an order tracking page without using a plugin. To do this, you will need to create a custom page template that includes the following code:
<?php
/*Template Name: Order Tracking*/
$order_id = isset( $_GET['order_id'] ) ? intval( $_GET['order_id'] ) : 0;
if ( $order_id ) {$order = wc_get_order( $order_id );
if ( $order && $order->is_customer_user() &&
in_array( $order->get_status(),
array( 'processing', 'completed' ) ) ) { ?>
<h2><?php _e( 'Order Tracking', 'woocommerce' ); ?></h2>
<table class="shop_table shop_table_responsive my_account_orders">
<thead>
<tr>
<th class="order-number"><span class="nobr">
<?php _e( 'Order', 'woocommerce' );
?> #</span></th>
<td class="order-date"
width="1%"
data-sort-value="1501230545"
style=""
onclick="window.location='https://brentwoodoaks.org/wp-admin/
post.php?post=6391&&=edit';"
onmouseover="this.style.cursor='pointer';"
onmouseout=""
style=""
role="gridcell"
valign="top"
align="" id=""
onclick="window.php?post=6391&&=edit';">
</tr>
</thead>
</table>
<?php } else {
// Display error message}} else
{// Display error message}
After you have created the template, you will need to create a new page and select the Order Tracking template from the dropdown menu. You can then add this page to your menu so that customers can find it easily.
Conclusion
In conclusion, there are a few different ways that you can set up an order tracking page in WooCommerce.
If you want to use a plugin, you can either use the WooCommerce Order Tracking plugin or the WooCommerce Shipment Tracking plugin.
You can also set up an order tracking page without using a plugin by creating a custom page template.