Followed instructions on Course Details Customization and I am getting errors

Home Forums Legacy Support Support queries How-to & Troubleshooting Followed instructions on Course Details Customization and I am getting errors

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #3695
    ZYMedia
    Spectator
    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!
    #3780
    Anshuman Sahu
    Keymaster
    Can you please share your customizer_class.php file to check the issue in code . Attach the file in zipped format .
    #3828
    ZYMedia
    Spectator
    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!
    #3999
    Anshuman Sahu
    Keymaster
    Remove the existing  wplms customizer plugin and try installing this new wplms  customizer plugin (attached ) :
    #4089
    ZYMedia
    Spectator
    Thanks! That corrected it for me :) Any advice on my follow up question?
    #4419
    Anshuman Sahu
    Keymaster
    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  .
    #4431
    ZYMedia
    Spectator
    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?
    #4706
    Anshuman Sahu
    Keymaster
    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/
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Followed instructions on Course Details Customization and I am getting errors’ is closed to new replies.