Skip to content

Commit

Permalink
WooCommerce: check for new order methods before using, as < 3.0 does …
Browse files Browse the repository at this point in the history
…not have these. #426
  • Loading branch information
dannyvankooten committed Apr 11, 2017
1 parent e1d1c21 commit af59660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Changelog

**Improvements**

- Use updated order methods in WooCommerce 3.0, thanks to Liam McArthur.
- Use updated order methods when using WooCommerce 3.0, thanks to Liam McArthur.
- Updated JavaScript dependencies.


Expand Down
2 changes: 1 addition & 1 deletion integrations/woocommerce/class-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function subscribe_from_woocommerce_checkout( $order_id ) {
'LNAME' => $order->billing_last_name,
);
}

// TODO: add billing address fields, maybe by finding MailChimp field of type "address"?
return $this->subscribe( $data, $order_id );
Expand Down

0 comments on commit af59660

Please sign in to comment.