-- HikaShop version -- : 3.0.0
Hi
I have a custom field of type checkbox with label: COLOR
I have a value and title within called BLACK
My translation works fine in backend, but in frontend where I output the content, it's not getting through.
Here's my code:
<ul class="list">
<?php
$color = explode(",",$this->element->color);
foreach ($color as $key => $value) {
echo '<li>';
$myField = $fieldclass->get('17');
echo $myField->field_value[$value]->value;
echo '</li>';
}
?>
</ul>
EDIT: if I use this echo in my foreach, it works:
echo JText::_($myField->field_value[$value]->value);
Perhaps there are better ways?
EDIT: Sorry about wrong category for topic...
Thanks