- Posts: 7
- Thank you received: 0
Country appears before State (SOLVED)
- Marc Ozin
- Topic Author
- Offline
- New Member
-
Less
More
13 years 5 months ago #12759
by Marc Ozin
Country appears before State (SOLVED) was created by Marc Ozin
In the individual registration form The Country dropdown is displayed after the City and Before the State textboxes.
For UK addresses at least (I'm not sure about other in countries), this is wrong. Country should appear after the Zip textbox.
To fix this I edited the components/com_eventbooking/views/regsiter/tmpl/default.php
and moved lines 189 to 200
to just after the zip code that looks like this a bit further down:
The final code should look like this:
All the best
Marc
For UK addresses at least (I'm not sure about other in countries), this is wrong. Country should appear after the Zip textbox.
To fix this I edited the components/com_eventbooking/views/regsiter/tmpl/default.php
and moved lines 189 to 200
Code:
<?php
}
if ($this->config->s_country) {
?>
<tr>
<td class="title_cell">
<?php echo JText::_('EB_COUNTRY'); ?><?php if ($this->config->r_country) echo '<span class="required">*</span>'; ?>
</td>
<td class="field_cell">
<?php echo $this->lists['country_list']; ?>
</td>
</tr>
to just after the zip code that looks like this a bit further down:
Code:
if ($this->config->s_zip) {
?>
<tr>
<td class="title_cell">
<?php echo JText::_('EB_ZIP'); ?><?php if ($this->config->r_zip) echo '<span class="required">*</span>'; ?>
</td>
<td class="field_cell">
<input type="text" class="inputbox" name="zip" value="<?php echo $this->zip; ?>" size="15" />
</td>
</tr>
The final code should look like this:
Code:
if ($this->config->s_zip) {
?>
<tr>
<td class="title_cell">
<?php echo JText::_('EB_ZIP'); ?><?php if ($this->config->r_zip) echo '<span class="required">*</span>'; ?>
</td>
<td class="field_cell">
<input type="text" class="inputbox" name="zip" value="<?php echo $this->zip; ?>" size="15" />
</td>
</tr>
<?php
}
if ($this->config->s_country) {
?>
<tr>
<td class="title_cell">
<?php echo JText::_('EB_COUNTRY'); ?><?php if ($this->config->r_country) echo '<span class="required">*</span>'; ?>
</td>
<td class="field_cell">
<?php echo $this->lists['country_list']; ?>
</td>
</tr>
All the best
Marc
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.