Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

[#3654] Substitutions in emails

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 10 months ago - 8 years 10 months ago #276938 by ricco1
Replied by ricco1 on topic Substitutions in emails

None of this has anything to do with your issue though. You're wanting invoice information to be substituted in, which we've a feature ticket to implement in addition to looking into other possible substitutions to support for the emails.


You are right, the concerns about the CBSubs invoices, for the following recurring payment, will be discussed in this recent topic of mine: www.joomlapolis.com/forum/153-professional-member-support/232497-cbsubs-invoices-for-recurring-payments?limitstart=0 , and the ones about the substitutions in emails – here:

You should be able to make it a SELECT and place it in a query field then within CBSubs > Settings > Display > Invoices substitute in the query field. Not 100% sure this will work with query fields at this time, but it should.


I think that it should be an UPDATE, because my goal is to increment the ‘invoice’ number + 1 not only when the first payment status is ‘Completed’, but also when the next recurring payment status is ‘Completed’ and received, so we can follow and issue the invoices automatically. How otherwise your software, currently, will know that the invoice number has increased? You are increasing the number when the first payment is made, but not on the following.

Otherwise I'm guessing you could use onCbSubsAfterPaymentBasket trigger in CB Auto Actions or onCPayAfterPaymentBasketUpdated.


Could you describe the trigger and the event, please? What is the full auto action, like you’ve given thousands of examples before?

I don’t know where you are, but our accountants need invoice for each payment that we receive, and I’d like to automate the process.

Thank you
Last edit: 8 years 10 months ago by ricco1.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48570
  • Thanks: 8293
  • Karma: 1445
8 years 10 months ago #276945 by krileon
Replied by krileon on topic Substitutions in emails

I think that it should be an UPDATE, because my goal is to increment the ‘invoice’ number + 1 not only when the first payment status is ‘Completed’, but also when the next recurring payment status is ‘Completed’ and received, so we can follow and issue the invoices automatically. How otherwise your software, currently, will know that the invoice number has increased? You are increasing the number when the first payment is made, but not on the following.

Your select query would be handling the entire increment process. So that's all possible depending on how you've wrote your query. I'm not sure if [FIELD_NAME] will work for it, but you can try the below usage to see if it'll substitute in the query fields value.

[cb:userdata field="FIELD_NAME" /]

Could you describe the trigger and the event, please? What is the full auto action, like you’ve given thousands of examples before?

onCbSubsAfterPaymentBasket fires after the basket is rendered. So it should exist in database and be safe to edit, but it could be unreliable. Ideally you'd need to act on a trigger that is fired only once when the basket is created, but I'm unsure if such a trigger exists. onCPayAfterPaymentBasketUpdated is fired when the basket has been updated.

What is the full auto action, like you’ve given thousands of examples before?

You'd use a query action on either of the triggers supplied then try to use your query in it.

I don’t know where you are, but our accountants need invoice for each payment that we receive, and I’d like to automate the process.

That's something that is always handled by the payment processor. All of this information should be available through PayPal, etc.. There's also the payments database table that can be exported.


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

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

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 10 months ago - 8 years 10 months ago #276991 by ricco1
Replied by ricco1 on topic Substitutions in emails

onCPayAfterPaymentBasketUpdated is fired when the basket has been updated.


That's solves it then.

OK, now I see, I should have read more careful the first time.

Thank you
Last edit: 8 years 10 months ago by ricco1.

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

Moderators: beatnantkrileon
Powered by Kunena Forum