-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.1
-- PHP version -- : 7.0
hello, I need to access to the additional field created called trk_number, in the view changestatus.php subview notification.php, I have tried to load the additional data in the function changestatus() in the view.html.php to the following code:
function changestatus(){
$order_id = hikashop_getCID('order_id');
$new_status = JRequest::getVar('status','');
if(!empty($order_id)){
$class = hikashop_get('class.order');
$order = $class->get($order_id,$new_status);
$order->order_old_status = $order->order_status;
$order->order_status = $new_status;
$class->loadOrderNotification($order);
$class->getOrderAdditionalInfo($order);
}else{
$order = new stdClass();
}
$order->order_status = $new_status;
$this->assignRef('element',$order);
$editor = hikashop_get('helper.editor');
$editor->name = 'hikashop_mail_body';
$editor->content = $order->mail->body;
$this->assignRef('editor',$editor);
}
After accepting the field trk_number in this form I need to save it in the order.
I always received that the count($this->fields)=0, when it must have at least 1