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.
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.
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.
Code:
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.