From 5107d1dbc6e5a64155205e0588630b8df394f7c4 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Wed, 20 Jan 2016 18:23:08 -0200 Subject: [PATCH] Introduces new actions for account orders --- templates/myaccount/orders.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/templates/myaccount/orders.php b/templates/myaccount/orders.php index ac35a130bc4..f6227446c61 100644 --- a/templates/myaccount/orders.php +++ b/templates/myaccount/orders.php @@ -22,11 +22,18 @@ if ( ! defined( 'ABSPATH' ) ) { } $customer_orders = new WP_Query( wc_get_account_orders_query_args( $current_page ) ); +$has_orders = $customer_orders->have_posts(); + +wc_print_notices(); wc_get_template( 'myaccount/navigation.php' ); ?>
- have_posts() ) : ?> + + + + + @@ -100,6 +107,8 @@ wc_get_template( 'myaccount/navigation.php' ); ?> + + max_num_pages ) : ?> + + +