Hi,
I have this scenario:
User buy Basic Plan, after 3 hours he say "Fantastic Product, I move to Pro". But when try to upgrade to Pro he not have any discount.
in /helpers/emerald.php at line 815 I have this code:
$used_days = floor(($now - $start) / 86400);
$steps_used = ceil($used_days / $ug_plan->params->get('crossplans.ud_price_step'));
if(!$steps_used)
{
continue;
}
but if an user used plan for less of 1 day then $steps_used var is "0" and he not have discount. Now i have changed line 815 with:
$used_days = ceil(($now - $start) / 86400);
and now this it's fixed.
Hi, I have this scenario:
User buy Basic Plan, after 3 hours he say "Fantastic Product, I move to Pro". But when try to upgrade to Pro he not have any discount.
in /helpers/emerald.php at line 815 I have this code:
but if an user used plan for less of 1 day then $steps_used var is "0" and he not have discount. Now i have changed line 815 with:
and now this it's fixed.