PayPal button Thankyou page don't redirect correctly

  • kinui
  • Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 42
  • Thank you received: 2

kinui replied the topic: PayPal button Thankyou page don't redirect correctly

Hi, I didn't had time for wait your answer so you I solved the problem.

I'm gonna tell you were it is for future problems with other users.

The problems is in the file facileforms.process.php

in the inside the node case PayPal line 8296

you have the line
$returnurl = htmlentities(JURI::root() . "index.php?option=com_breezingforms&confirmPayPal=true&form_id=" . $this->form . "&record_id=" . $this->record_id);

instead an $options;

Before this code I add this code for language redirect

$lang = JFactory::getLanguage();

if( $lang->getTag() == 'es-ES' ){
$returnurl = htmlentities(JURI::root()."es/gracias");
}
elseif ($lang->getTag() == 'en-GB'){
$returnurl = htmlentities(JURI::root()."en/thank-you");
}
elseif ($lang->getTag() =='pt-BR'){
$returnurl = htmlentities(JURI::root()."pt/obrigada");
}

So for me that was the solution. But it would be great if you change the file and make a thank you page field for each language, because is better if we don't modify the core files.

Thank you for your help

Regards
#238093
The following user(s) said Thank You: mihaela
  • Posts: 2652
  • Karma: 92
  • Thank you received: 354

mihaela replied the topic: PayPal button Thankyou page don't redirect correctly

Hello,

Thank you for sharing this solution.

I am glad that you have managed to resolve this and that it is now working as you wanted.
Still, I am not sure why redirecting to the "Thank you page" in PayPal button properties regardless of language didn't work for you in the first place since it should.

As for setting the thank you page based on a language, I agree that it would be a good idea to set thank you page field for each language so the core files don't need to be changed. Thank you for the suggestion, I will suggest this to our developers.

P.S. It was a public holiday here yesterday, so that is the reason for not answering sooner.

Best regards,

Mihaela
#238097
Moderators: ForumSupporttomeperica
Time to create page: 0.035 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here