Skip to content

Commit

Permalink
Merge pull request #537 from themeum/ibrahim
Browse files Browse the repository at this point in the history
Update TutorEDD.php
  • Loading branch information
harunollyo authored Aug 28, 2023
2 parents 91c92b4 + d362f32 commit a4a0a12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions classes/TutorEDD.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ public function is_course_purchasable( $bool, $course_id ) {
*/
public function get_tutor_course_price( $price, $course_id ) {
$product_id = tutor_utils()->get_course_product_id( $course_id );

return edd_price( $product_id, false );
if ( tutils()->has_edd() ) {
return edd_price( $product_id, false );
}

}

/**
Expand All @@ -198,7 +200,7 @@ public function tutor_course_sell_by() {
* @return void
*/
public function edd_update_payment_status( $payment_id, $new_status, $old_status ) {
if ( 'publish' !== $new_status ) {
if ( 'complete' !== $new_status ) {
return;
}

Expand Down

0 comments on commit a4a0a12

Please sign in to comment.