Skip to Content Skip to Menu

[#4427] Redirect User to Custom Thank You Page after CBSubs Purchase

10 years 8 months ago - 10 years 8 months ago #241563 by prestoproducts
Is there a way to redirect the user to a joomla article after successfully purchasing a plan? I see the workflow text area in the plan settings. Is that the only location?

I have tried using CB Auto Actions for redirect. These are the triggers I have attempted:

onCPayPaymentItemEvent : redirect happened before basket

onCPayAfterPaymentStatusChange, onCPayAfterDrawSomething, onCbSubsAfterPaymentBasket, onCPayUserStateChange : nothing

As you can see, no luck.
Last edit: 10 years 8 months ago by krileon.

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

10 years 8 months ago #241565 by prestoproducts
If the workflow text editing is the only option, how do I hide the system message that starts with:

"Thank you for your payment of USD..."

I have tried adding custom text to the "Thank-you text (payment completed)" to match the article I would like, but this message is displayed on top. I would like to hide it.

The best bet for me would still be to redirect the user, so if that is an option please let me know.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #241576 by krileon
You can't redirect during that as it's the final step in finalizing the payment. The messages can be changed by adjusting the thank you messages in your plans and adjusting the CBSubs language strings found in the below CBSubs language plugin files.

components/com_comprofiler/plugin/language/cbpaidsubscriptions-en-gb/


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.

10 years 8 months ago #241594 by prestoproducts
Okay, so that works for everything to build out my article with one exception. At the top of the registration and CB Subs basket I have an HTML module which says something to the effect of "Join Us Now."

Since at this point the user has joined the site and just purchased a membership I would like this module to say "Welcome." Is there a way to change this?

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

10 years 8 months ago #241624 by prestoproducts
My thought was to use the "Login" action from CB Auto Actions to log the user into the site after the payment basket is complete from the last registration step. I can then label the module with Guest permissions and it should not show up to the logged in user.

The only problem is that I still cannot find an action to trigger at this point. Any suggestion?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8281
  • Karma: 1443
10 years 8 months ago #241669 by krileon

Since at this point the user has joined the site and just purchased a membership I would like this module to say "Welcome." Is there a way to change this?

If they're not logged in then no as Joomla has no idea the user exists or not. Note modules are entirely handled by Joomla. CB really has no control over this.

My thought was to use the "Login" action from CB Auto Actions to log the user into the site after the payment basket is complete from the last registration step. I can then label the module with Guest permissions and it should not show up to the logged in user.

That would work, but there's no trigger that I am aware of that fires that late in the CBSubs process so I don't think you can do it. I know the state change trigger fires, but it may fire too early in the process and cause issues.


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