I've tried to add telephone and city into last orders but it doesn't show the details, it show the columns but not the customer city or phone
The question is Why I'm not receiving the details from customers here is screenshot

https://prnt.sc/0Hcfd6nBKuTX
I've add to file recent.php :
Code: Select all
foreach ($results as $result) {
$data['orders'][] = array(
'order_id' => $result['order_id'],
'customer' => $result['customer'],
'telephone' => $result['telephone'],
'shipping_city' => $result['shipping_city'],
'status' => $result['order_status'],
'date_added' => date($this->language->get('date_format_short'), strtotime($result['date_added'])),
'total' => $this->currency->format($result['total'], $result['currency_code'], $result['currency_value']),
'view' => $this->url->link('sale/order/info', 'user_token=' . $this->session->data['user_token'] . '&order_id=' . $result['order_id'], true),
);
}
And also add to recent to recent_info.twig :
Code: Select all
<thead>
<tr>
<td class="text-right">{{ column_order_id }}</td>
<td>{{ column_customer }}</td>
<td>{{ column_status }}</td>
<td>{{ column_telephone }}</td>
<td>{{ column_city }}</td>
<td>{{ column_date_added }}</td>
<td class="text-right">{{ column_total }}</td>
<td class="text-right">{{ column_action }}</td>
</tr>
</thead>
<tbody>
{% if orders %}
{% for order in orders %}
<tr>
<td class="text-right">{{ order.order_id }}</td>
<td>{{ order.customer }}</td>
<td>{{ order.status }}</td>
<td>{{ order.telephone }}</td>
<td>{{ order.city }}</td>
<td>{{ order.date_added }}</td>
<td class="text-right">{{ order.total }}</td>
<td class="text-right"><a href="{{ order.view }}" data-toggle="tooltip" title="{{ button_view }}" class="btn btn-info"><i class="fa fa-eye"></i></a></td>
</tr>