Make sure Simplify customer ID is set on renewals

So that if the renewal is for a failed payment, the the new value is set
on the renewal order's `'_simplify_customer_id'` post meta value and can
be copied back to the original order in `update_failing_payment_method()`.
This commit is contained in:
Brent Shepherd 2015-03-11 14:50:25 -07:00
parent 6d339241a2
commit 028cea41d3
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class WC_Addons_Gateway_Simplify_Commerce extends WC_Gateway_Simplify_Commerce {
* @return bool
*/
protected function order_contains_subscription( $order_id ) {
return class_exists( 'WC_Subscriptions_Order' ) && WC_Subscriptions_Order::order_contains_subscription( $order_id );
return class_exists( 'WC_Subscriptions_Order' ) && ( WC_Subscriptions_Order::order_contains_subscription( $order_id ) || WC_Subscriptions_Renewal_Order::is_renewal( $order_id ) );
}
/**