Home › Forums › Legacy Support › Support queries › Other issues › Instructors courses will go to pending mode when settings/pricing/curriculum is
- This topic has 13 replies, 3 voices, and was last updated 4 years, 9 months ago by Anshuman Sahu.
Viewing 14 posts - 1 through 14 (of 14 total)
-
AuthorPosts
-
May 28, 2019 at 1:14 am #211039bamcseSpectatorHi, 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 !!!May 28, 2019 at 2:36 pm #211186Anshuman SahuKeymasterYes 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 .May 28, 2019 at 3:32 pm #211188bamcseSpectatorHi, 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 !!!!May 29, 2019 at 2:30 pm #211381Anshuman SahuKeymasterYes 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 ?May 29, 2019 at 3:30 pm #211389bamcseSpectatorHi, yes I prefer to send notification when instructor change the price ,May 30, 2019 at 10:31 am #211489MkModeratorPlease 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);May 31, 2019 at 11:04 am #211675bamcseSpectatorThis reply has been marked as private.June 1, 2019 at 8:03 am #211804Anshuman SahuKeymasterplease 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);June 22, 2019 at 11:30 am #215130bamcseSpectatorThis reply has been marked as private.June 24, 2019 at 2:15 pm #215301MkModeratorSorry 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.June 24, 2019 at 3:01 pm #215308bamcseSpectatorso 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 "June 25, 2019 at 1:53 pm #215428MkModeratorIn 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.June 25, 2019 at 4:12 pm #215467bamcseSpectatorThis reply has been marked as private.June 26, 2019 at 1:12 pm #215638Anshuman SahuKeymasterthis 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 . -
AuthorPosts
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.