so I made a modification that allows the "Action" column to have both [Edit] and [Invoice] links
here is the code changes to make....
Code: Select all
\admin\language\english\english.php
$_['text_invoice'] = 'Invoice'; //I added this
\admin\controller\sale\order.php
$action[] = array(
'text' => $this->language->get('text_edit'),
'href' => HTTPS_SERVER . 'index.php?route=sale/order/update&token=' . $this->session->data['token'] . '&order_id=' . $result['order_id'] . $url,
//i added this...
'text2' => $this->language->get('text_invoice'),
'href2' => HTTPS_SERVER . 'index.php?route=sale/order/invoice&token=' . $this->session->data['token'] . '&order_id=' . $result['order_id'] . $url
//end my add
);
\admin\view\template\sale\order_list.tpl
[ <a href="<?php echo $action['href2']; ?>"><?php echo $action['text2']; ?></a> ]
\admin\controller\common\home.php
$action[] = array(
'text' => $this->language->get('text_edit'),
'href' => HTTPS_SERVER . 'index.php?route=sale/order/update&token=' . $this->session->data['token'] . '&order_id=' . $result['order_id'],
//i added this...
'text2' => $this->language->get('text_invoice'),
'href2' => HTTPS_SERVER . 'index.php?route=sale/order/invoice&token=' . $this->session->data['token'] . '&order_id=' . $result['order_id']
//end my add
);
\admin\view\template\common\home.tpl
[ <a href="<?php echo $action['href2']; ?>"><?php echo $action['text2']; ?></a> ]