Skip to content

Commit af59660

Browse files
WooCommerce: check for new order methods before using, as < 3.0 does not have these. #426
1 parent e1d1c21 commit af59660

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Changelog
99

1010
**Improvements**
1111

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

1515

integrations/woocommerce/class-woocommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function subscribe_from_woocommerce_checkout( $order_id ) {
102102
'LNAME' => $order->billing_last_name,
103103
);
104104
}
105-
105+
106106
// TODO: add billing address fields, maybe by finding MailChimp field of type "address"?
107107
108108
return $this->subscribe( $data, $order_id );

0 commit comments

Comments
 (0)