Actually, at the moment, there is no way for the system to know the relation ship between basic , standard and pro, so I don't know how to handle this requirement
Currently, we still allow upgrading if the original plan is free (even it is expired). I will try to think more about this case to see whether we can find a solution. For now, you can do a quick modification to the code to prevent upgrade when the plan is already expired:
1. Open the file components/com_osmembership/helper/subscription.php
2. Find the method getUpgradeRules
3. Find this line of code:
Code:
$query->select('DISTINCT plan_id')
->from('#__osmembership_subscribers')
->where('user_id = ' . $userId)
->where('(published = 1 OR (published = 2 AND amount = 0))');
3. Change it to:
Code:
$query->select('DISTINCT plan_id')
->from('#__osmembership_subscribers')
->where('user_id = ' . $userId)
->where('published = 1');
It should solve your issue/concern for now
Tuan