Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: I suggest creating a field for them to supply username or user id of the family member.
krileon wrote: Then use CB Query Field to query the database to see if that username or user id has an active subscription.
krileon wrote: You could then condition that field in a CBSubs Promotion to give them a discount.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: There's "rn" in your screenshot with your query. Please don't use linebreaks in your query as you could end up with this problem. It also seams the tab or the query plugin isn't published, I only speak English so don't know what that error says specifically when editing the field.
krileon wrote: Please try the below query.
Code:SELECT `id` FROM `#__cbsubs_subscriptions` WHERE `user_id` = '[cb_numaderentparent]' AND `status` IN ( 'A', 'R' )
The above will basically output the subscription id for a user matching the parent field with an active or renewed status.
krileon wrote: Once the above is tested working (display it on profile for a user with the parent field correctly set to see if it outputs fine) you'll need to configure your promotion as follows.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.