- Posts: 11
- Thank you received: 1
Message for Duplicate Registration
- Eric Engert
- Topic Author
- Offline
- New Member
-
Less
More
11 years 5 months ago #36662
by Eric Engert
Message for Duplicate Registration was created by Eric Engert
Is there supposed to be some sort of message or indication when a duplicate registration is detected? Currently, when my users enter the same email address on the billing screen that has already been registered for the event, the Registration Confirmation button is disabled but no indication is given as to why so they don't know what to do.
If no alert message is currently in the code, where could this be added (so I can add it myself)?
If no alert message is currently in the code, where could this be added (so I can add it myself)?
Please Log in or Create an account to join the conversation.
- Eric Engert
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 1
11 years 5 months ago #36666
by Eric Engert
Replied by Eric Engert on topic Re: Message for Duplicate Registration [SOLVED]
I solved the problem. There is some code missing in the /components/com_eventbooking/views/register/tmpl/group_billing.php file.
Needed to add the following line:
just after this block of code:
Hope that helps.
Needed to add the following line:
Code:
<span class="invalid" id="validate_email_msg" style="display: none;"><?php echo JText::_('EB_YOU_REGISTERED_ALREADY'); ?></span>
just after this block of code:
Code:
<div class="control-group">
<label class="control-label" for="email">
<?php echo JText::_('EB_EMAIL'); ?><span class="required">*</span>
</label>
<div class="controls">
<?php
if ($this->config->prevent_duplicate_registration || ($this->config->user_registration && !$this->userId))
{
$onChange = 'onchange="validateEmail();"';
}
else
{
$onChange = '';
}
?>
<input type="text" class="input-large" id="email" name="email" value="<?php echo $this->email; ?>" <?php echo $onChange; ?> />
Hope that helps.
The following user(s) said Thank You: Robert Clift
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 5 months ago #36752
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Message for Duplicate Registration [SOLVED]
Thanks so much Eric. I will check and correct it in the extension soon !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- riesentoter
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
11 years 5 months ago #36887
by riesentoter
Replied by riesentoter on topic Re: Message for Duplicate Registration [SOLVED]
hey Eric
I ran into the same problem and I tried your fix,
but I get the variable
'EB_EMAIL_REGISTER_FOR_EVENT_ALREADY'
displayed instead of the text which stems from
var emailDuplicateRegistration = <?php echo JText::_('EB_EMAIL_REGISTER_FOR_EVENT_ALREADY'); ?>"
lower down in the code
any suggestions?
Thanks
I ran into the same problem and I tried your fix,
but I get the variable
'EB_EMAIL_REGISTER_FOR_EVENT_ALREADY'
displayed instead of the text which stems from
var emailDuplicateRegistration = <?php echo JText::_('EB_EMAIL_REGISTER_FOR_EVENT_ALREADY'); ?>"
lower down in the code
any suggestions?
Thanks
Please Log in or Create an account to join the conversation.
- Eric Engert
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 11
- Thank you received: 1
11 years 5 months ago #36890
by Eric Engert
Replied by Eric Engert on topic Re: Message for Duplicate Registration [SOLVED]
Check your Translation tab and find out the name of the variable that holds the message you want to display. Then plug that variable name into the code. It could be different.
For me, it was 'EB_YOU_REGISTERED_ALREADY' that worked.
For me, it was 'EB_YOU_REGISTERED_ALREADY' that worked.
Please Log in or Create an account to join the conversation.
- riesentoter
- Offline
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
11 years 5 months ago #36891
by riesentoter
Replied by riesentoter on topic Re: Message for Duplicate Registration [SOLVED]
that worked I just have to clean up the spacing a bit....
thanks much
thanks much
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 5 months ago #36917
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Message for Duplicate Registration [SOLVED]
@riesentoter: That's great !
@Eric Engert: Thanks for helping me answer forum questions.
Tuan
@Eric Engert: Thanks for helping me answer forum questions.
Tuan
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.