Skip to Content Skip to Menu

Which trigger to choose for an autoaction

  • agaudin
  • agaudin
  • ONLINE
  • Posts: 95
  • Thanks: 16
  • Karma: 3
1 hour 9 minutes ago #344435 by agaudin
Hello,

I am currently using a registration form where
- you can pay later by bank wiring
- you can pay directly with Stripe
and the profil works with
- CB fields showing list of subscriptions
- an AutoAction sending a message with thoses fields.

I am not sure about the good trigger which will send the email
- once paiment is ended (i.e. after the final Thank you frontend page - wiring expected OR Stripe successful)
- the fields are populated with subscribed plans in both situations

I cannot see clearly when use a onCPayXXX or a onCbSubsXXX. But I am TOTALLY sure that you'll enlight me quickly   :-)

Best regards
Antoine
 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50658
  • Thanks: 8681
  • Karma: 1474
1 hour 3 minutes ago #344436 by krileon
Replied by krileon on topic Which trigger to choose for an autoaction
Ideally you shouldn't even need CB Auto Actions and instead should configure the emails under the Presentation tab of your plan or emails in CBSubs Email integration for more customization. Those send based off subscription state so are pretty reliable and already support substitutions.

If you still want to send an email based off for example when a payment happens that's also doable and would need CB Auto Actions. I can provide an example for that if you need.


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

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

  • agaudin
  • agaudin
  • ONLINE
  • Posts: 95
  • Thanks: 16
  • Karma: 3
38 minutes ago #344437 by agaudin
Replied by agaudin on topic Which trigger to choose for an autoaction
In this email, there is plan informations but also other informations, and people can select a lot of plans :
This message contains confidential information


Also the mail is not intended to be sent to the regitred user but to an organizer. That's why we don't use emails under the Presentation tab of plans, but an AutoAction. The trigger onAfterUserRegistration send a populated mail (i.e CB fields populated with plans list are present in the email substitutions)  when using Bank Wiring, but empty when using Stripe. Can I choose another trigger, or mix two with a condition ?

 

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50658
  • Thanks: 8681
  • Karma: 1474
25 minutes ago #344438 by krileon
Replied by krileon on topic Which trigger to choose for an autoaction
CBSubs Emails supports custom recipient so you can specify who to send it to.

The trigger onAfterUserRegistration send a populated mail (i.e CB fields populated with plans list are present in the email substitutions) when using Bank Wiring, but empty when using Stripe. Can I choose another trigger, or mix two with a condition ?

It shouldn't matter how they paid. onAfterUserRegistration is fired directly after registration, which normally is before payment is collected.

Are you wanting to send this specifically after a payment basket gets marked completed (paid)?


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 or Create an account to join the conversation.

  • agaudin
  • agaudin
  • ONLINE
  • Posts: 95
  • Thanks: 16
  • Karma: 3
19 minutes ago #344439 by agaudin
Replied by agaudin on topic Which trigger to choose for an autoaction
When using on AfterUserRegistration, when using Stripe / Test mode (at least), the CB fields populated with CBSubscriptions are not substitued in the email (but standard fields like name or email or radio button selection are correctly substitued).
Should I "Reload the user" in the AutoAction ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50658
  • Thanks: 8681
  • Karma: 1474
11 minutes ago #344440 by krileon
Replied by krileon on topic Which trigger to choose for an autoaction
AfterUserRegistration happens before payment collection so that won't work for your email. I need to know more specifically when exactly you want this email sent. After payment is completed?


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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum