-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Chrome x.x.x
-- Error-message(debug-mod must be tuned on) -- : no error message
I have a checkbox set of entries. The entry list is pretty long. I need to display ONLY those checkboxes that have been checked, not the whole field layout. Here is what I have a that moment for my code. What do I need to do instead of the Display I am showing? I don't want it actually showing the checkboxes on the front-end. That makes no sense!
I tried to find information about the different parameters for the "DIsplay" function, but cannot find it in the documentation.
Code:
<?php /* Get Applicable to Press Type Custom Field */
if(!empty($this->fields)){
foreach($this->fields as $fieldName => $oneExtraField){
if($fieldName!='applicabletopresstype') continue;
?>
<p>Applicable to Press Type:
<?php
echo $this->fieldsClass->display($oneExtraField,$this->element->$fieldName,'data[product]',false);
}
}
?>
</p>
For example, if they have chosen JUST "ALL" value, I only want it to show:
Applicable to Press Type: ALL
If they have chose more than one press type, I want it to show:
Applicaple to Press Type: Press 1, Press 2, Press 3,