Skip to content

Commit

Permalink
= 4.2.6.9.3 =
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnxt89 committed Jul 27, 2024
1 parent 19d9abe commit f8a1f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/templates/class-lp-template-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function course_purchase_button( $course = null ) {

$can_purchase = $user->can_purchase_course( $course->get_id() );
if ( is_wp_error( $can_purchase ) ) {
if ( in_array( $can_purchase->get_error_code(), [ 'order_processing', 'course_out_of_stock' ] ) ) {
if ( in_array( $can_purchase->get_error_code(), [ 'order_processing' ] ) ) {
Template::print_message( $can_purchase->get_error_message(), 'warning' );
}
$can_show = false;
Expand Down

0 comments on commit f8a1f54

Please sign in to comment.