I created two custom fields for categories.
one is
forklift_construction_code - Filed type = Text
I want to load it's value to a variable named $constructioncode so I do this:
$this->row =& $row;
$db = JFactory::getDBO();
$db->setQuery('SELECT forklift_construction_code FROM '.hikashop_table('category').' WHERE category_id='.(int)$this->row->product_manufacturer_id);
$constructioncode = $db->loadResult();
but although I have all categories with a value defined for this field I always get a blank value. Looks like the value is not loading.
I use the same code to retrieve the value for category_name and category_id and it works fine, but those are core fields, shall I use different code for custom fields?