-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3x
-- PHP version -- : x5x
Hi
I would like to display the custom field for table "product" on the Order View and Files - show and listing.
In the Show file, I have used the below to get the product details..
<?php $productclass = hikashop_get('class.product'); $data = $productclass->get($product->product_id); ?>
I use echo $data->FIELD_COLUMN_NAME;
However I would like to retrieve the custom field "Title" instead of the Value.
If I use the below, it gives all the custom field value but not related to the item in the order.
$fieldsClass = hikashop_get('class.field');
$fields = $fieldsClass->getFields('frontcomp',$this->row,'product','checkout&task=state');
Could you advise how I can retrieve the custom fields related to the product on the order only.
Thanks
Patrick