Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix renewal orders that do not need processing are not transitioned to completed such as virtual downloadable products #224

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ public function wps_sfw_add_order_statuses_for_payment_complete( $order_status,

$wps_sfw_renewal_order = wps_sfw_get_meta_data( $order_id, 'wps_sfw_renewal_order', true );
if ( 'paypal' == $payment_method && 'yes' == $wps_sfw_renewal_order ) {
$order_status[] = 'wps_renewal';
$order_status[] = 'wc-wps_renewal';
}
if ( 'ppec_paypal' == $payment_method && 'yes' == $wps_sfw_renewal_order ) {
$order_status[] = 'wps_renewal';
$order_status[] = 'wc-wps_renewal';
}
}
return $order_status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function wps_sfw_add_stripe_order_statuses_for_payment_complete( $order_s

$wps_sfw_renewal_order = wps_sfw_get_meta_data( $order_id, 'wps_sfw_renewal_order', true );
if ( in_array( $payment_method, $allmethod ) && 'yes' == $wps_sfw_renewal_order ) {
$order_status[] = 'wps_renewal';
$order_status[] = 'wc-wps_renewal';

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function wps_wsp_add_woocybs_order_statuses_for_payment_complete( $order_

$wps_sfw_renewal_order = wps_sfw_get_meta_data( $order_id, 'wps_sfw_renewal_order', true );
if ( $this->wps_wsp_check_supported_payment_options( $payment_method ) && 'yes' == $wps_sfw_renewal_order ) {
$order_status[] = 'wps_renewal';
$order_status[] = 'wc-wps_renewal';

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function wps_pifw_add_order_statuses_for_payment_complete( $order_status,
$payment_method = $order->get_payment_method();
$wps_sfw_renewal_order = wps_sfw_get_meta_data( $order_id, 'wps_sfw_renewal_order', true );
if ( 'wps_paypal' === $payment_method && 'yes' === $wps_sfw_renewal_order ) {
$order_status[] = 'wps_renewal';
$order_status[] = 'wc-wps_renewal';

}
}
Expand Down