Processing orders also allow download (since they are paid)

This commit is contained in:
Mike Jolley 2011-11-16 19:15:20 +00:00
parent 6a5b7d88a5
commit 41eae1cc3b
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class woocommerce_customer {
$order = &new woocommerce_order( $result->order_id );
if ( $order->status != 'completed' ) continue;
if ( $order->status!='completed' && order->status!='processing' ) continue;
$product_post = get_post( $result->product_id );

View File

@ -828,7 +828,7 @@ function woocommerce_download_product() {
if ($order_id) :
$order = &new woocommerce_order( $order_id );
if ($order->status!=='completed') :
if ($order->status!='completed' && order->status!='processing') :
wp_die( sprintf(__('Invalid order. <a href="%s">Go to homepage &rarr;</a>', 'woothemes'), home_url()) );
exit;
endif;