Hi,
In the old checkout status view i have such code:
<?php
$app = JFactory::getApplication();
$order = $app->getUserState( HIKASHOP_COMPONENT.'.checkout_fields',null);
$shipping_id = $app->getUserState( HIKASHOP_COMPONENT.'.shipping_id');
$terminal = '<span class="label label-info label-term-info">'.$order->lpexpress.'</span>';
$array = array();
if(!empty($this->shipping_data)) {
$names = array();
foreach ($this->shipping_data as $shipping) {
$names[] = $shipping->shipping_name;
}
$text = JText::_('HIKA_NO_TERMINAL_SELECTED');
if($order->lpexpress == '0') $terminal = '<span class="label label-info-warning">'.$text.'</span>';
$array[] = JText::sprintf('HIKASHOP_SHIPPING_METHOD_CHOSEN','<span class="label label-info">' . implode(', ', $names).'</span>');
if($shipping->shipping_name == 'LPexpress paštomatas')
$array[] = JText::sprintf('HIKASHOP_TERMINAL_CHOSEN','<span class="">'.$terminal.'</span>');
}
if(!empty($this->payment_data)) {
$array[]= JText::sprintf('HIKASHOP_PAYMENT_METHOD_CHOSEN','<span class="label label-info">'.$this->payment_data->payment_name.'</span>');
}
echo implode('<br/><br/>', $array);
?>
It would display custom field value selected by user. "$order->lpexpress"
After updating to hikashop 3 it doesn't work anymore with old checkout.
What changes i need here?
Many thanks