CBSubs Mailer - create emails to only go to people on auto renewal

6 years 11 months ago #294103 by bins
Hi all,

sorry to bother about another mailer question, but I am trying to work out how to create emails to remind people that there subscription is about to expire. HOWEVER, I need one message for people with auto renewal and one for manual.

Any ideas?

Please Log in to join the conversation.

6 years 11 months ago #294115 by krileon
Don't think you can do that. There's no conditions in CBSubs Mailer for checking if it's auto recurring or manual. I guess you could use CB Query Field and query for that information then condition against it, but for it to be reliable you'd have to have such a query field per plan with the plan id hardcoded into the query.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

6 years 11 months ago #294169 by bins
Thanks for the response & suggestion.

A bit out of my knowledge levels but I will see what I can do.

Please Log in to join the conversation.

6 years 11 months ago #294171 by krileon
Something like the below should work in a CB Query Field usage. It'd check if they've a subscription to the specified plan if and if it's auto recurring or not. To condition against the returned value just check if it's greater than 0 and if it is then it's auto recurring.

SELECT `autorecurring_type` FROM `#__cbsubs_subscriptions` WHERE `user_id` = '[user_id]' AND `plan_id` = PLAN_ID_HERE ORDER BY `subscription_date` DESC LIMIT 1


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.194 seconds

Facebook Twitter LinkedIn