Country appears before State (SOLVED)

  • Marc Ozin
  • Topic Author
  • Offline
  • New Member
  • New Member
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
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