thanks. btw, can I set by course id other than instructor id?
Hi, 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;
I know the reason. have to set "name" and "email" on BP connect plugin
looks I found the solution. once I disable ajax login in buddypress, it works well now. perhaps there is conflict between modern theme with buddypress ajax login
I already using latest version of modern theme, why the login popup looks not the same with you : http://themes.vibethemes.com/wplms/skins/modern/
also I found it may issue of style, checked your demo site of modern theme, the login popup is working fine
Hi, try to change the other style, but still the same as default of modern theme
could you suggest me which file is about the commission caculate code?
Hi, 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?
I 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?
oh.. we really need the fixed commission, any other way can work for this function?
or 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;
}
or another way, how can I set some course as commission percent and some as fixed commission?
Hi,
Looks you are not using Moden theme
I have created new topic: https://vibethemes.com/documentation/wplms/forums/topic/unit-duration-parameter-issue/
That's great. many thanks. it works now.
Btw, I have another problem, when I set the Unit Duration parameter as "seconds", but the the course status page on left-up corner is still for mins, how can I resolve. I am using modern theme