@@ -498,14 +498,14 @@ public function select_course_items( $items, $is_refunded = false ) {
498498 */
499499 public function items_enrollment_request ( $ courses , $ order_id , $ billing_email , $ request_type ) {
500500
501- $ force_enrollment = get_option ('openedx-enrollment-force ' , false );
502- $ allow_non_existing = get_option ('openedx-enrollment-allowed ' , false );
501+ $ force_enrollment = get_option ( 'openedx-enrollment-force ' , false );
502+ $ allow_non_existing = get_option ( 'openedx-enrollment-allowed ' , false );
503503
504- if ($ force_enrollment && $ allow_non_existing ) {
504+ if ( $ force_enrollment && $ allow_non_existing ) {
505505 $ action = 'openedx_enrollment_allowed_force ' ;
506- } elseif ($ force_enrollment ) {
506+ } elseif ( $ force_enrollment ) {
507507 $ action = 'openedx_enrollment_force ' ;
508- } elseif ($ allow_non_existing ) {
508+ } elseif ( $ allow_non_existing ) {
509509 $ action = 'openedx_enrollment_allowed ' ;
510510 } else {
511511 $ action = 'enrollment_process ' ;
@@ -515,7 +515,6 @@ public function items_enrollment_request( $courses, $order_id, $billing_email, $
515515
516516 $ course_id = get_post_meta ( $ item ['course_item ' ]->get_product_id (), '_course_id ' , true );
517517 $ course_mode = get_post_meta ( $ item ['course_item ' ]->get_product_id (), '_mode ' , true );
518- // $action = 'enrollment_process';
519518
520519 $ enrollment_arr = array (
521520 'openedx_enrollment_course_id ' => $ course_id ,
0 commit comments