I think it is solved but needs some testing. In functions.php from plugin starting in line 2064
// HOURS UPLIFT FOR CALCULATION OF DEFAULT 24H FEE TO DIFFERENT HOURS
function osp_hours_uplift($fee, $hours = NULL) {
$price = $fee;
if($hours <> '' && $hours > 0) {
$days = $hours / 24;
if($days < 1) {
$price = $fee * pow($days, 1/4);
} else if($days > 1) {
$price = $fee * pow($days, 1/2);
} else {
$price = $fee;
}
}
return $price;
}
Change 1/4 and 1/2 to 1 delete the delimiter and it seems like that is solving the problem...
// HOURS UPLIFT FOR CALCULATION OF DEFAULT 24H FEE TO DIFFERENT HOURS
function osp_hours_uplift($fee, $hours = NULL) {
$price = $fee;
if($hours <> '' && $hours > 0) {
$days = $hours / 24;
if($days < 1) {
$price = $fee * pow($days, 1);
} else if($days > 1) {
$price = $fee * pow($days, 1);
} else {
$price = $fee;
}
}
return $price;
}
Discount ( Full price per 6hrs / 12hrs/ ... ) can be set in plugin itself per category and per period.
If you don't want a discount it counts the normal fee per day...
To be continued :-)