Fix fatal error
This commit is contained in:
parent
3cad5a66d4
commit
2c940e2299
|
@ -39,7 +39,7 @@ if ( $customer_orders ) : ?>
|
||||||
|
|
||||||
<tbody><?php
|
<tbody><?php
|
||||||
foreach ( $customer_orders as $customer_order ) {
|
foreach ( $customer_orders as $customer_order ) {
|
||||||
$order = wc_get_order();
|
$order = wc_get_order( $customer_order );
|
||||||
$order->populate( $customer_order );
|
$order->populate( $customer_order );
|
||||||
$item_count = $order->get_item_count();
|
$item_count = $order->get_item_count();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue