Instructors courses will go to pending mode when settings/pricing/curriculum is

Home Forums Legacy Support Support queries Other issues Instructors courses will go to pending mode when settings/pricing/curriculum is

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #211039
    bamcse
    Spectator
    Hi, I enable " Instructors courses will go to pending mode when settings/pricing/curriculum is saved. " in the lms setting and Requires Admin Approval enabled in WPLMS - Course Manager now how the admin know if the instructor have change the course price to approve him . the admin does not receive any announcement in this status !!!
    #211186
    Anshuman Sahu
    Keymaster
    Yes each and every details has not been recorded as of now in front end course creation .it does not keeps track of what has been changed . Also the notification after each change is not sent as there might be tens of instructors on site creating tens of courses , it might slow down the server sending all these emails .   However and admin can check pending courses from wp-admin -> all courses OR wp-admin -> lms -> lms tree .
    #211188
    bamcse
    Spectator
    Hi, actually the Admin receive notification when the instructor create a course , but not receive any thing if the instructor change the price of the course , it's very difficult to admin to check all courses every day !!!!
    #211381
    Anshuman Sahu
    Keymaster
    Yes the reason already explained above :

    it does not keeps track of what has been changed .

    Also the notification after each change is not sent as there might be tens of instructors on site creating tens of courses , it might slow down the server sending all these emails .

    It will also be difficult which course has been changed if there are many instructors keeps updating their course each and everyday .   We can  reduce this change detection to on thing and can send notification for one thing only : like only when instructor changes pricing ?
    #211389
    bamcse
    Spectator
    Hi, yes I prefer to send notification when instructor change the price ,
    #211489
    Mk
    Moderator
    Please add given code in wplms-customizer.php   add_action('wplms_front_end_save_course_pricing',function ($course_id,$settings){   do_action('wplms_course_go_live',$course_id,get_post($course_id)); },10,2);
    #211675
    bamcse
    Spectator
    This reply has been marked as private.
    #211804
    Anshuman Sahu
    Keymaster
    please remove the above given code and add this instead : add_action('wplms_front_end_save_course_pricing',function ($course_id,$settings){   do_action('wplms_course_go_live',$course_id,(array)get_post($course_id)); },10,2);
    #215130
    bamcse
    Spectator
    This reply has been marked as private.
    #215301
    Mk
    Moderator
    Sorry sir, Currently it's not available at our end. Actually, there is no any email template for price change. The message you are getting because of action wplms_course_go_live.
    We will have to add a new email template, will have to create tokens. That will need a lot of coding.
    #215308
    bamcse
    Spectator
    so in Alex above code can we change the action to another one more suitable? , that generate notification message like this : Instructor %s sent the course %s for approval " this notification message generate when Instructor create the course "
    #215428
    Mk
    Moderator
    In my previous reply, What I wanted to tell was To get this type of message "Instructor %s sent the course %s for approval", We will have to add a new email template, will have to create tokens. That will need a lot of coding.   because all messages are coming from email templates. and currently, there is no any template like this "Instructor %s sent the course %s for approval".
    If you want anything else, please reply.
    #215467
    bamcse
    Spectator
    This reply has been marked as private.
    #215638
    Anshuman Sahu
    Keymaster
    this notification message : " Instructor %s sent the course %s for approval "
    sent to the admin when the instructor create a course, this is done already in wplms , there is nothing to do with it. The code given here is to trigger this same email whenever the instructor changes the course price . If you remove it the email will be sent only when course is created not each time course pricing is updated .  
Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Instructors courses will go to pending mode when settings/pricing/curriculum is’ is closed to new replies.