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

No longer able to use my theme's enroll button template override - // TEST code in codebase #584

Open
waltersonntag opened this issue Dec 14, 2024 · 0 comments

Comments

@waltersonntag
Copy link

// 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

Why is this here? Should this // Test code be here?

It breaks my ability to override the enroll button template file with a custom override file that exists in my theme. The return line at line 188 prevents the code further down the function which checks for custom theme template override files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant