Include Joomla User ID

  • okkhalid
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 1 month ago #79219 by okkhalid
Include Joomla User ID was created by okkhalid
Hello,

I would like to include Joomla user id to the registration thank you email and in the invoice.

I'm thinking to use Joomla User Id as Student Number.
So the student number will shows in the confirmation email when some one register to an event.

Please can you guide me and help me

Thank you so much.

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

More
8 years 1 month ago #79238 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Include Joomla User ID
Hi

What if user is not logged in when registering for the event? Or in your system, you require users to login before they can register for the event?

Tuan

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

  • okkhalid
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 1 month ago #79284 by okkhalid
Replied by okkhalid on topic Include Joomla User ID
Hi, all my users must register to the site when they register for any event.
So basically I have the registration integration on. so they must add user name and password and email then they select the course and pay.

They will get the welcome email from joomla when the click on Process Registration.

I have submitted a link to the help desk for you to view.

Thank you again for the great help and support

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

More
8 years 1 month ago #79285 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Include Joomla User ID
You will need to edit the code yourself if you want to use the tag. Please try to follow the instructions below:

1. Open the file components/com_eventbooking/helper/helper.php

2. Find this the function buildTags

3. Before the end of that function, enter this code
Code:
$replaces['user_id'] = $row->user_id;

Then you should be able to use the tag [USER_ID] tag in the email message and in the invoice
The following user(s) said Thank You: okkhalid

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

  • okkhalid
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 1 month ago #79294 by okkhalid
Replied by okkhalid on topic Include Joomla User ID
Very nice of you Mr. Tuan

Thank you so much for the help, it worked :)

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

Moderators: Tuan Pham Ngoc