[-] BO : #PSCFV-2739 - Hide button merchandise return if disable

This commit is contained in:
mDeflotte
2012-06-08 08:44:50 +00:00
parent 6d5b39a3ae
commit 5cc8fea579
+8 -6
View File
@@ -195,12 +195,14 @@ class AdminOrdersControllerCore extends AdminController
'desc' => $this->l('Add a product'),
'class' => 'add_product'
);
$this->toolbar_btn['standard_refund'] = array(
'short' => 'Create',
'href' => '',
'desc' => $type,
'class' => 'process-icon-standardRefund'
);
if (Configuration::get('PS_ORDER_RETURN'))
$this->toolbar_btn['standard_refund'] = array(
'short' => 'Create',
'href' => '',
'desc' => $type,
'class' => 'process-icon-standardRefund'
);
if ($order->hasBeenPaid())
$this->toolbar_btn['partial_refund'] = array(