Substitutions in CB Paid Subscriptions Auto Action output

1 month 3 days ago - 1 month 3 days ago #324358 by boyjahq
We have an auto action of type CB Paid Subscriptions. Under the output tab we are trying to use CBSubs substitutions in the Message box but none of them work. Other substitutions, such as
[LASTNAME], [FIRSTNAME], [USERNAME], [EMAIL]
do render properly. Is it not possible to use CBSubs substitutions in this context? We have tried every possible combination of CBSubs substitutions that do work in other contexts.

The code we were hoping to include in the message is something like:
You have successfully unsubscribed from Host Break. [cbsubs:if plan="1" status="A"]Your other membership is still active until [cbsubs:subscriptions plan="1" output="expiry_date"/][cbsubs:else]You currently have no active memberships[/cbsubs:else][/cbsubs:if]
The above code works fine in "Email on cancellation by user" message...

Action = Unsubscribe from a specific plan

Output
Display = Redirect (redirects them to their user profile)
Message Type = Attention

Parameters
Translate = Yes
Substitutions = Yes

Please Log in to join the conversation.

1 month 2 days ago #324369 by krileon
Enable content plugins under the Parameters tab. Those substitutions come from a Joomla content plugin.


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.

1 month 2 days ago #324388 by boyjahq
I forgot to indicate in my previous post that Content Plugins under the Parameters tab was also set to Yes. The substitutions work fine in "Email on cancellation by user" message under the plan's Presentation tab. But this is still how it renders on the web page

Attachments:

Please Log in to join the conversation.

1 month 1 day ago #324395 by krileon
Ah, you're redirecting in the output tab. That doesn't have parameters to enable content plugins like the other Output layout options do. Have added a bug ticket to fix.

forge.joomlapolis.com/issues/8466

Fixed build release should be out sometime today.


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.
The following user(s) said Thank You: boyjahq

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.586 seconds

Facebook Twitter LinkedIn