Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › question for instructor earning dashboard
- This topic has 17 replies, 2 voices, and was last updated 6 years, 9 months ago by H.K. Latiyan.
-
AuthorPosts
-
July 20, 2017 at 2:10 pm #121645EricSpectatorHi, so far the instructor earning dashboard only showing the earning, how can I also let it show the sold products numbers? thanksJuly 21, 2017 at 3:04 am #121704EricSpectatoror another way, how can I set some course as commission percent and some as fixed commission?July 21, 2017 at 8:33 am #121765H.K. LatiyanParticipantHi... Sorry both of these are not available in wplms as of now.July 21, 2017 at 8:43 am #121767EricSpectatoror can set some one instructor with fixed commission and others still keep percent? I found your previous code, it still works? add_filter('wplms_calculated_commission_base','wplms_fixed_commission',10,2); function wplms_fixed_commission($commission,$instructor_id){ // You can also configure this based on instructor IDs return 100; }July 21, 2017 at 1:57 pm #121817H.K. LatiyanParticipantHi... In this code also the percentage is returned, for example if you return 100 then it means the commission is 100%. Its not available to fix the commission as of now.July 21, 2017 at 2:56 pm #121834EricSpectatoroh.. we really need the fixed commission, any other way can work for this function?July 22, 2017 at 5:26 am #121885H.K. LatiyanParticipantI already mentioned its not available in wplms to fix the commission.July 23, 2017 at 7:54 am #121990EricSpectatorI have a way, can I set the commission return as integer. for example, the course sold as 90USD, the 1% commission is 0.9 USD. how to set let return to 1USD?July 24, 2017 at 11:35 am #122079H.K. LatiyanParticipantHi... If this was a solution then I would have told you about it in the first place. But its not, it doesn't work like this. Our instructor commission system is built to work in percentage right now. You can only fix the commission in percentage but not a fixed amount as of now.July 24, 2017 at 11:45 am #122080EricSpectatorHi, I know it is only work for percentage now. just confirm if can return integer, or return 0.x. for example, can I set 0.1% or only starting 1%? If I set 99 USD, the 1% commission will return 0.99USD or 0.9 USD? If I set 99USD, the 0.1% commission will return 0.099?July 24, 2017 at 11:48 am #122083H.K. LatiyanParticipantRight now also the integer value is returned, for example if you return 1 which is an integer, it will be considered as 1 percentage.July 24, 2017 at 11:52 am #122084EricSpectatorcould you suggest me which file is about the commission caculate code?July 24, 2017 at 2:26 pm #122142H.K. LatiyanParticipantThe commission code is not in a single file. Its present in the vibe course module plugin and vibe customtypes plugin. You can refer the code in the vibe course module plugin->bp-course-actions.php file and the bp-course functions.php file and bp-course-template.php file In custom types plugin you can see the folder named as commission, you can refer both the files present in it.July 27, 2017 at 7:12 am #122513EricSpectatorHi, I found the commission calculate code on bp-course -actions.php, I would like to give specific course with fixed commission (like 20USD, for single instructor), for example the course post id is '103', I add the code on line 970 as below, please let me know if it is right or suggest me how to modify it. if($course_id == '103') $calculated_commission_base = 20;July 27, 2017 at 11:45 am #122535H.K. LatiyanParticipantThis reply has been marked as private.
-
AuthorPosts
- The topic ‘question for instructor earning dashboard’ is closed to new replies.