Data fields at the contact form

A professionally designed template for photographers and architects
GK User
Mon Sep 18, 2017 3:26 pm
Actually the contact form displays the field in an "american" style:
<city> <postal code>
I need it ordered in "european" style:
<postal code> <city>

How can I achieve this?
User avatar
Fresh Boarder

Joshua M
Thu Sep 28, 2017 11:18 pm
Hi,
You can change the order only by editing template file:
html/com_contact/contact/default_address.php
move:
Code: Select all
<?php if ($this->contact->suburb && $this->params->get('show_suburb')) : ?>
          <span class="contact-suburb" itemprop="addressLocality"> <?php echo $this->contact->suburb; ?> </span>
          <?php endif; ?>

after:
Code: Select all
<?php if ($this->contact->postcode && $this->params->get('show_postcode')) : ?>
          <span class="contact-postcode" itemprop="postalCode"> <?php echo $this->contact->postcode; ?> </span>
          <?php endif; ?>
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.