Hi,
In woocommerce Myorder page showing default woocommerce column name, just we want to change the position on the default column name.
The order page column name defined on the plugins/woocommerce/includes/wc-account-functions.php file.
code:
======
/**
* Get My Account > Orders columns.
*
* @since 2.6.0
* @return array
*/
function wc_get_account_orders_columns() {
$columns = apply_filters(
‘woocommerce_account_orders_columns’, array(
‘order-number’ => __( ‘Order’, ‘woocommerce’ ),
‘order-date’ => __( ‘Date’, ‘woocommerce’ ),
‘order-status’ => __( ‘Status’, ‘woocommerce’ ),
‘order-total’ => __( ‘Total’, ‘woocommerce’ ),
‘order-actions’ => __( ‘Actions’, ‘woocommerce’ ),
)
);
// Deprecated filter since 2.6.0.
return apply_filters( ‘woocommerce_my_account_my_orders_columns’, $columns );
}
We have to swap the column name (Total, Status) according to our requirement,
We have created the same file structure and trying to change the column name on our child theme it’s not getting reflected.
Please help us to change this ASAP.