Welcome, Guest
Username: Password: Remember me

TOPIC: Remove Postal Code

Remove Postal Code 1 year 1 month 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 1 year 1 month ago #5951

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2765
  • Thank you received: 292
  • Karma: 40
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.314 seconds