Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You'll need to add a subquery to that to make sure they don't have an active subscription since your query is just finding the first expired subscription row for the user and isn't plan specific. You could probably also order by active then by expired so active subscriptions would show first.Is it possible to alter it to avoid users who already have a renewed or active subscription ? and how ?
You can add whatever you want and it'll directly add to the query. If you mean for CBSubs it self to extend the sorting that'll never happen.I think it would be great to add more sorting functionalities from cbsubs, for instance to get all users who have expired subscription without any active one right now
Please Log in or Create an account to join the conversation.
You'll need to add a subquery to that to make sure they don't have an active subscription since your query is just finding the first expired subscription row for the user and isn't plan specific. You could probably also order by active then by expired so active subscriptions would show first.
Please Log in or Create an account to join the conversation.