Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
You'll need to modify the query then and extend it with plan_id check in its WHERE statement. Should be all you'll need to change in the query.However i only want to show where plan is 1 or 2 vs any active plans.
Please Log in to join the conversation.
( ( SELECT COUNT(*) FROM `#__cbsubs_subscriptions` AS sub WHERE sub.`user_id` = u.`id` AND sub.`status` = 'A' AND sub.`plan_id` = '1' OR sub.`plan_id` = '2' ) >= 1)
( ( SELECT COUNT(*) FROM `#__cbsubs_subscriptions` AS sub WHERE sub.`user_id` = u.`id` AND sub.`status` = 'A' AND sub.`plan_id` = '1' ) >= 1)
AND plan_id IN (2, 5, 7, 9)
( ( SELECT COUNT(*) FROM `#__cbsubs_subscriptions` AS sub WHERE sub.`user_id` = u.`id` AND sub.`status` = 'A' AND sub.`plan_id` IN (1, 2)) >= 1)
Please Log in to join the conversation.
Please Log in to join the conversation.