Hi,
I used the instructions on the knowledgebase for Removing price information but when I added the code to the customizer_class.php file, I got this error:
Parse error: syntax error, unexpected '$key' (T_VARIABLE).
I had to delete the inputted codes but wanted to know how I can now properly remove the price from all the courses.
thanks!
Can you please share your customizer_class.php file to check the issue in code .
Attach the file in zipped format .
Hi Alex,
Thanks for your response. Attaching my revised customizer files.
I'll take this opportunity to also ask if its possible to completely remove all display of pricing for all courses? I am planning to have payments done offline and do not actually need the cart. Anyone who purchases will be sent a course code via email and all they would need to do is input the course code to gain access to the course. I tested the implementation of the widget for course codes and find it is exactly what I need, except I would like to streamline the checkout flow by making the Take This Course button lead to a revised checkout page which will only show the course code widget. So aside from learning how to remove the price, can you also point me towards a way to implement the course code widget on a checkout page?
Thanks again!
Remove the existing wplms customizer plugin and try installing this new wplms customizer plugin (attached ) :
Thanks! That corrected it for me :) Any advice on my follow up question?
Just do not set any product in your courses and neither make them free.
In this way courses will show only private label and no pricing will how to users .
However user can get access by the course code .
Thanks Alex! That would have been ideal except I'd also like to not show the Private Course Button. I tried following the instructions found here: https://wplms.io/support/knowledge-base/how-to-hide-private-course-button/
But again its giving me a 500 error. Even with the new customizer plugin you sent me. Any clue why?
Please copy the code from here and add it to your wplms-customizer,php file :
add_action('wplms_the_course_button','wplms_custom_hide_private_button',10,2);
function wplms_custom_hide_private_button($course_id,$user_id){
if(!wplms_user_course_check($user_id,$course_id)){
echo '<style>.course_button{display:none;}</style>';
}
}
You can also follow the tip : https://wplms.io/support/knowledge-base/renaming-private-course-labels/