They left a test on production code!
public function course_purchase_button( $course = null ) {
// Test
$singleCourseTemplate = SingleCourseTemplate::instance();
$course = CourseModel::find( get_the_ID(), true );
$user = UserModel::find( get_current_user_id(), true );
echo $singleCourseTemplate->html_btn_purchase_course( $course, $user );
return;
// End test
Which file?
EDIT – I found – \inc\templates\class-lp-template-course.php
-
This reply was modified 1 year, 3 months ago by
bobek19.
Hi bobek19,
Thank you for reaching out to us!
We have tested the course purchasing process with both logged-in and non-logged-in users using LearnPress 4.2.7.5.1 and the Twenty Twenty-Five theme. In our tests, clicking the “Buy Course” button correctly redirects to the checkout page without any issues. Unfortunately, we could not reproduce the problem you described.
To assist you better, could you please provide the following information:
- The theme you’re currently using.
- A screenshot or video of the issue when it occurs.
This information will help us understand the situation better and attempt to replicate the issue to find a solution for you.
Looking forward to your response!
Best regards,
Brianvu-tp