Hi,
I'm new to hikashop, but i see a huge potential of what can be done using it. I decided to use it for our company B2B platform.
This is a simple issue, but one that has been bothering me and i've spent too much time trying to figure it out...
I've created a custom field for categories (one only) that will store color number for different display options in the front end. The color code is to be added to a div class in :
listing_img_pane.php.
This is what I have:
<div class='cat_color_label cat_color<?php
if(!empty($this->fields)){
$fieldsClass = hikashop_get('class.field');
$fields = $fieldsClass->getFields('frontcomp', $this->row, 'category');
foreach($this->fields as $fieldName => $oneExtraField) {
echo $oneExtraField->field_namekey; //prints fine added just for testing
echo $this->fieldsClass->show($oneExtraField,$this->element->$fieldName); // i get nothing!
}
}?>
'>
Hot to retrieve custom field value from either category or product....
Hope you can help...
Regards
Joe