-- HikaShop version -- : 2.6.1
Hi!
Is there a more flexible way to display category fields on product page as well, then
if(!empty($this->categories)){
foreach($this->categories as $category){
$kategoria = $category->category_id;
}
}
$categoryClass = hikashop::get('class.category');
$category = $categoryClass->get($kategoria);
and then loading all values with:
<?php echo $category->FIELDNAME; ?>
Beacuse for example later fields can be extended, and for example when loading an ajax image field it just loads the image name. So this is not really an easy way.
Thanks in advance!