Processing orders also allow download (since they are paid)
This commit is contained in:
parent
6a5b7d88a5
commit
41eae1cc3b
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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 →</a>', 'woothemes'), home_url()) );
|
||||
exit;
|
||||
endif;
|
||||
|
|
Loading…
Reference in New Issue