Fix fatal error

This commit is contained in:
Nicola Mustone 2015-05-27 16:35:16 +02:00
parent 3cad5a66d4
commit 2c940e2299
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ if ( $customer_orders ) : ?>
<tbody><?php
foreach ( $customer_orders as $customer_order ) {
$order = wc_get_order();
$order = wc_get_order( $customer_order );
$order->populate( $customer_order );
$item_count = $order->get_item_count();