To display custom fields in the parent category I use the code: and it works
How can I display custom fields in a child category?
Code:
<?phpforeach ($this->category->jcfields as $jcfield) { $this->category->jcFields[$jcfield->name] = $jcfield;}$myCustomFields = array();foreach($this->category->jcfields as $field) {$myCustomFields[$field->name] = $field->value; } ?><?php echo $myCustomFields['iconsvg']; ?>
How can I display custom fields in a child category?
Statistics: Posted by MsenaMsena — Fri Apr 12, 2024 2:47 pm