How do I remove "fax number" as a requirement? I already changed the attribute to don't show but it still shows. I have the same problem with the "keyword" attribute . Can you help with these please ? Also I noticed that when I make edits in the settings its actually not instant but takes minutes to finally show up. Why is this ?
Hi,
If the fax number and keywords fileds already contain a value this will be shown on front-end. By setting the option no show, this will hide the attributes on edit business listing screen.
The delay is probably caused by your cache settings. Are you clearing the Joomla cache after making changes?
I overrode the file admin\views\company\tmpl\edit.php to remove the Fax field from the contact person area on the edit business listing page.
On 4.5.0 after Line 1022 I added check for fax status.
<?php
if($attributeConfig["fax"]!=ATTRIBUTE_NOT_SHOW) { ?>
<div class="detail_box">
<?php if($attributeConfig["contact_person"] == ATTRIBUTE_MANDATORY){?>
<div class="form-detail req"></div>
<?php }?>
<label for="contact_fax"><?php echo JText::_('LNG_FAX')?></label>
<input type="text" name="contact_fax" id="contact_fax" class="input_txt <?php echo $attributeConfig["contact_person"] == ATTRIBUTE_MANDATORY?"validate[required]":""?>" value="<?php echo $this->item->contact->contact_fax ?>">
<div class="clear"></div>
</div>
<?php }?>
Devs, feel free to steal this idea.