Welcome, Guest
Username: Password: Remember me

TOPIC: Remove Postal Code

Remove Postal Code 2 years 8 months ago #5948

Is there a way to remove the field 'Postal Code'. I don't have any use for the field, and it creates a lot of confusion for my users, since it messes up the map position.
The administrator has disabled public write access.

Remove Postal Code 2 years 8 months ago #5951

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2941
  • Thank you received: 336
  • Karma: 45
Hi,

Kindly open the add.php file from the below path,

Root -> components -> com_jomclassifieds -> views -> user-> tmpl -> add.php

Please remove the below code to remove the Postal code field :
<div class="control-group">
          <label class="control-label"><?php echo JText::_('POSTAL_CODE'); ?>
           <?php echo JomclUtils::setTooltip('COM_JOMCLASSIFIEDS_POSTAL_CODE_TOOLTIP_DESC'); ?>
          </label>
          <div class="controls">
            <input class="key" type="text"  name="postalcode" <?php echo $ua; ?>/>
          </div>
    </div>

Kindly open the edit.php file from the below path,

Root -> components -> com_jomclassifieds -> views -> user-> tmpl -> edit.php

Please remove the below code to remove the Postal code field :
<div class="control-group">
            <label class="control-label"><?php echo JText::_('POSTAL_CODE'); ?>
             <?php echo JomclUtils::setTooltip('COM_JOMCLASSIFIEDS_POSTAL_CODE_TOOLTIP_DESC'); ?>
            </label>
            <div class="controls">
              <input class="key" type="text" name="postalcode" size="40" <?php echo $ua; ?> value="<?php echo $item->postalcode; ?>" />
            </div>
        </div>

Finally save the files and check you site.

Thanks.
The administrator has disabled public write access.
The following user(s) said Thank You: Conny Fornbäck
Time to create page: 0.189 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 skype.jomclassifieds
 
 
Copyright © 2013-2018 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.

We accept cookies to provide you the best viewing experience. By using our services, you agree to our use of cookies