Post by 12oclocker » Mon Oct 25, 2010 12:23 pm

I was getting tired of having to click edit, then invoice, so I could copy the shipping address and print the recepits...

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
&nbsp;[ <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
&nbsp;[ <a href="<?php echo $action['href2']; ?>"><?php echo $action['text2']; ?></a> ]

action.jpg

screen shot - action.jpg (11.21 KiB) Viewed 1977 times


Active Member

Posts

Joined
Fri Feb 19, 2010 10:50 am
Who is online

Users browsing this forum: No registered users and 5 guests