Skip to Content Skip to Menu

🏖 Summer has arrived! Start your summer right with our summer sale! Get 25% off professional and developer memberships with code SUMMER-2025!

Upgrade Configuration and how to correctly adjust amount due

  • AlexRag
  • AlexRag
  • ONLINE
  • Posts: 560
  • Thanks: 39
  • Karma: 7
1 week 5 days ago #341513 by AlexRag
Thank you!  Should I make sure the Code Condition come after the Field: Custom > Value one you suggested?   Does your auto action work whether it's an upgrade or a first sign-up to the one plan?

I was wondering what the onCPayUserSubscriptions trigger does, and trying the "Subscriptions: Condition in combination with what I think the trigger means

Condition
Field:  Subscriptions
User: Action User
Operator: Has
Plans: Special Plan
Status: Active

(Do you have any docs on Trigger definitions so I can learn more about what they are capable of?)

:)

 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49403
  • Thanks: 8457
  • Karma: 1465
1 week 5 days ago #341517 by krileon

Should I make sure the Code Condition come after the Field: Custom > Value one you suggested?

The order doesn't matter.

Does your auto action work whether it's an upgrade or a first sign-up to the one plan?

Only works with upgrades.

I was wondering what the onCPayUserSubscriptions trigger does

That trigger fires when a list of a users subscriptions is requested. It's just a part of the query function for this. CB Family Plans for example uses it to inject pseudo subscriptions for when a subscription is shared.

Subscriptions: Condition in combination with what I think the trigger means

Honestly I completely forgot I implemented the Subscriptions condition. You should be able to use that instead of the Code condition.

(Do you have any docs on Trigger definitions so I can learn more about what they are capable of?)

View the global tab when adding triggers. It'll give you details about what variables are available. As for a description of what each trigger does specifically no we do not have such documentation.


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: AlexRag

Please Log in or Create an account to join the conversation.

  • AlexRag
  • AlexRag
  • ONLINE
  • Posts: 560
  • Thanks: 39
  • Karma: 7
1 week 4 days ago #341520 by AlexRag
Thanks, I will give this a try!

Does this look correct?

Global
Triggers: onCPayDisplayBasketResult
Type: Redirect
User: Self
Access: Everybody

Condition #1
Field: Custom > Value
Custom Value: [var1_payment_status]
Operator: Equal To
Value: Completed

Condition#2
Field:  Subscriptions
User: Action User
Operator: Has
Plans: Special Plan
Status: Active

Action
URL: (Whichever URL on the site I want to redirect to)
Message: [var2]

Sorry, I have just thought of a couple of follow-up questions/comments:

1. What is the message of [var2], and does it appear just before the redirect?  (I am guessing it's what appears as part of the "completed basket payment" page?     
2. I have forgotten where I would be able to customize that message if possible.   I am thinking it may be easier just to add the URL there in the message for them to follow instead of the Auto Action.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49403
  • Thanks: 8457
  • Karma: 1465
1 week 4 days ago #341526 by krileon

Does this look correct?

Looks ok to me.

1. What is the message of [var2], and does it appear just before the redirect? (I am guessing it's what appears as part of the "completed basket payment" page?

It's whatever your payment complete text would be. Usually the thank you text as configured in your plans as well as some information about their transaction. You're not required to include that if you don't want to though. My example was just that an example so feel free to adjust it however you like.

2. I have forgotten where I would be able to customize that message if possible. I am thinking it may be easier just to add the URL there in the message for them to follow instead of the Auto Action.

You can add whatever HTML you like as part of the thank you text within your plans under their presentation tabs.


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: AlexRag

Please Log in or Create an account to join the conversation.

  • AlexRag
  • AlexRag
  • ONLINE
  • Posts: 560
  • Thanks: 39
  • Karma: 7
1 week 3 days ago #341533 by AlexRag
Last question (hopefully).  If I invoke the Redirect Auto Action, how quickly does the redirect take place once the upgrade process is complete?   Will the member first see the payment confirmation page, and then some time after the redirect takes place?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49403
  • Thanks: 8457
  • Karma: 1465
1 week 2 days ago #341542 by krileon
It takes place immediately following a completed payment. They won't see the payment confirmation page at all.


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: AlexRag

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum