- Posts: 5
- Thank you received: 2
Where to start modifying code to add [variables]
- David
- Topic Author
- Offline
- New Member
-
Less
More
12 years 5 months ago #22738
by David
Where to start modifying code to add [variables] was created by David
Hi,
Awesome plugin.
How would I modify the code so I can include [TRANSACTION_ID] on the "Thank You Message" page?
After a user registers, when the "Thank you" page is shown, I can display variables like [EVENT_TITLE] & [REGISTRATION_DETAIL].
I have tried adding [TRANSACTION_ID], but it doesn't work.
It DOES work on the "User Email Body" page. I need to modify the code so it works on the "Thank you" page. I'd like to do it the same way you do it. That way I can send you my code & you can add it into the next release.
I have a professional programmer who will do it, I just need to know where he should look to see how you do it (what pages, database tables, etc...)
Thanks,
-David
Awesome plugin.
How would I modify the code so I can include [TRANSACTION_ID] on the "Thank You Message" page?
After a user registers, when the "Thank you" page is shown, I can display variables like [EVENT_TITLE] & [REGISTRATION_DETAIL].
I have tried adding [TRANSACTION_ID], but it doesn't work.
It DOES work on the "User Email Body" page. I need to modify the code so it works on the "Thank you" page. I'd like to do it the same way you do it. That way I can send you my code & you can add it into the next release.
I have a professional programmer who will do it, I just need to know where he should look to see how you do it (what pages, database tables, etc...)
Thanks,
-David
Please Log in or Create an account to join the conversation.
- David
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 2
12 years 5 months ago #22740
by David
Replied by David on topic Re: Where to start modifying code to add [variables]
I found it!
It's super easy.
Can you add this code into the next release? It's only 1 line.
In the file: com_eventbooking/views/complete/view.html.php
Lines 86-101 set several variables for use in the backend / configuration / messages screen
If you add the following line to the end, it works perfectly:
$replaces = $row->transaction_id ;
I didn't have do change any other programming lines of code.
I did have to enter [TRANSACTION_ID] in the backend / configuration / messages screen that I wanted to use it in (in this case the "Thank You" page)
It's super easy.
Can you add this code into the next release? It's only 1 line.
In the file: com_eventbooking/views/complete/view.html.php
Lines 86-101 set several variables for use in the backend / configuration / messages screen
If you add the following line to the end, it works perfectly:
$replaces = $row->transaction_id ;
I didn't have do change any other programming lines of code.
I did have to enter [TRANSACTION_ID] in the backend / configuration / messages screen that I wanted to use it in (in this case the "Thank You" page)
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 5 months ago #22831
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Where to start modifying code to add [variables]
Hi David
I am not sure what version you are using but in the latest version (1.5.2), we already supported this tags already. Maybe you are still using old version on a Joomla 1.5 website ?
Tuan
I am not sure what version you are using but in the latest version (1.5.2), we already supported this tags already. Maybe you are still using old version on a Joomla 1.5 website ?
Tuan
Please Log in or Create an account to join the conversation.
- David
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 2
12 years 5 months ago #22881
by David
Replied by David on topic Re: Where to start modifying code to add [variables]
Thanks for the reply Tuan,
I am using Event Booking version 1.5.2, Copyright (C) 2010-2012 Ossolution Team on Joomla! 2.5.8
I do realize that you already support tags. I also realize you support the tag [TRANSACTION_ID].
But that tag only works in the "User email body" field.
That tag does NOT work in the "Thank you message" field.
Please try it. In config/messages / "Thank you message" enter [TRANSACTION_ID] then perform a transaction.
BUT, if you add the line of code that I suggested, IT WILL WORK.
Let me know if you have any questions.
Thanks Tuan,
-David
I am using Event Booking version 1.5.2, Copyright (C) 2010-2012 Ossolution Team on Joomla! 2.5.8
I do realize that you already support tags. I also realize you support the tag [TRANSACTION_ID].
But that tag only works in the "User email body" field.
That tag does NOT work in the "Thank you message" field.
Please try it. In config/messages / "Thank you message" enter [TRANSACTION_ID] then perform a transaction.
BUT, if you add the line of code that I suggested, IT WILL WORK.

Let me know if you have any questions.
Thanks Tuan,
-David
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 5 months ago #22905
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Where to start modifying code to add [variables]
Hi David
I see it now. You want to use this tag in the Registration Completed page, not in the emails and at the moment, that tag is not supported. I will consider adding support for this tag in future release .
Tuan
I see it now. You want to use this tag in the Registration Completed page, not in the emails and at the moment, that tag is not supported. I will consider adding support for this tag in future release .
Tuan
Please Log in or Create an account to join the conversation.
- David
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 2
12 years 5 months ago #22979
by David
Replied by David on topic Re: Where to start modifying code to add [variables]
Correct! I want to use the tag in the Registration Complete Page. Not in the emails.
It is super easy to make it work. I already figured it out. It is only 1 line:
In the file: com_eventbooking/views/complete/view.html.php
Lines 86-101 set several variables for use in the backend / configuration / messages screen
If you add the following line to the end, it works perfectly:
$replaces = $row->transaction_id ;
There are no other lines of code to add.
It is super easy to make it work. I already figured it out. It is only 1 line:
In the file: com_eventbooking/views/complete/view.html.php
Lines 86-101 set several variables for use in the backend / configuration / messages screen
If you add the following line to the end, it works perfectly:
$replaces = $row->transaction_id ;
There are no other lines of code to add.
The following user(s) said Thank You: Tuan Pham Ngoc, Mats
Please Log in or Create an account to join the conversation.
- Mats
- Offline
- Banned
-
Less
More
- Posts: 4
- Thank you received: 0
12 years 3 months ago #24658
by Mats
Replied by Mats on topic Re: Where to start modifying code to add [variables]
That was brilliant, David!
I was looking for exactly that and your fix really helped me.
Thanks a lot!!!
/Mats
I was looking for exactly that and your fix really helped me.
Thanks a lot!!!
/Mats
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 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.