fixed record_product_sales

This commit is contained in:
Mike Jolley 2012-02-24 12:48:20 +00:00
parent 4bcc3d583f
commit 96ba64d90f
2 changed files with 3 additions and 1 deletions

View File

@ -683,7 +683,7 @@ class WC_Order {
update_post_meta( $this->id, '_completed_date', current_time('mysql') );
// Sales
if ($this->status == 'on-hold' && ($new_status->slug=='processing' || $new_status->slug=='completed'))
if ($new_status->slug=='processing' || $new_status->slug=='completed')
$this->record_product_sales();
}

View File

@ -167,6 +167,8 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* is main query tweak
* Filters for BACS fields
* Polish translation by Maciej Swoboda
* More reliable cache deletion
* Fixed record_product_sales
= 1.4.4 - 18/02/2012 =
* Fix for remove coupon links after ajax update of shipping