Questions about Payment Form extension
Redirect successful payment to new page?
- enoch
- Topic Author
- Offline
- Premium Member
Less
More
9 years 3 weeks ago #58923
by enoch
Redirect successful payment to new page? was created by enoch
Hi,
I need to track successful payments that are done in payment form using Google Analytics tracking code on a destination page.
Is it possible for Payment form to direct users to a specific page once the payment is completed - instead of just showing a thank you message?
I need to track successful payments that are done in payment form using Google Analytics tracking code on a destination page.
Is it possible for Payment form to direct users to a specific page once the payment is completed - instead of just showing a thank you message?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
9 years 3 weeks ago #58954
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Redirect successful payment to new page?
Hi
It is not possible by default. However, you can edit the code abit to make it works like that:
1. Open the file components/com_pmform/view/complete/html.php
2. Look at function display()
3. Add the line of code below at the beginning of the function
Of course you need to replace domain.com/your-page.html with the URL of the page you want
After that, it should work as expected
Tuan
It is not possible by default. However, you can edit the code abit to make it works like that:
1. Open the file components/com_pmform/view/complete/html.php
2. Look at function display()
3. Add the line of code below at the beginning of the function
Code:
JFactory::getApplication()->redirect('http://domain.com/your-page.html');
Of course you need to replace domain.com/your-page.html with the URL of the page you want
After that, it should work as expected
Tuan
Please Log in or Create an account to join the conversation.
- enoch
- Topic Author
- Offline
- Premium Member
9 years 3 weeks ago #58994
by enoch
Replied by enoch on topic Redirect successful payment to new page?
Bingo - thanks again!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
9 years 3 weeks ago #59011
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Redirect successful payment to new page?
Happy to assist .
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.