Merge branch 'ticket-filterOrders' into develop
This commit is contained in:
commit
e7a93aa24e
@ -83,6 +83,13 @@ class AdminOrders extends AdminTab
|
||||
'id_country' => array('title' => $this->l('Pays'), 'callback' => 'printCountry', 'orderby' => false, 'type' => 'select', 'select' => $country_array, 'filter_key' => 'x!id_country', 'filter_type' => 'int', 'width' => 35,),
|
||||
);
|
||||
parent::__construct();
|
||||
|
||||
if(!isset($_POST['submitFilter']) && !isset($_POST['orderFilter_a!date_add'])) {
|
||||
$_POST['orderFilter_a!date_add'][0] = date('Y-m-d');
|
||||
$_POST['orderFilter_a!date_add'][1] = date('Y-m-d');
|
||||
$_POST['submitFilter'] = 1;
|
||||
$_POST['submitFilterorder'] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -398,13 +398,14 @@ class Cart extends CartCore {
|
||||
// || $carrier->id == 24
|
||||
// || $carrier->id == 37
|
||||
// || $carrier->id == 45) {
|
||||
|
||||
// if ($carrier->id == 28
|
||||
// || $carrier->id == 24
|
||||
// || $carrier->id == 27)
|
||||
if ($carrier->id == 45
|
||||
|| $carrier->id == 46
|
||||
|| $carrier->id == 47
|
||||
|| $carrier->id == 48) {
|
||||
// if ($carrier->id == 45
|
||||
// || $carrier->id == 46
|
||||
// || $carrier->id == 47
|
||||
// || $carrier->id == 48) {
|
||||
|
||||
if($cpt_sales == 2) {
|
||||
$shipping_cost += (float) Configuration::get('PS_SHIPPING_HANDLING_PS_1');
|
||||
@ -417,7 +418,7 @@ class Cart extends CartCore {
|
||||
} elseif($cpt_sales >= 6) {
|
||||
$shipping_cost += (float) Configuration::get('PS_SHIPPING_HANDLING_PS_4');
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
@ -458,7 +459,7 @@ class Cart extends CartCore {
|
||||
// ajout du surcout
|
||||
// $socolissimo_carriers = array(45, 33, 37, 22);
|
||||
// $socolissimo_carriers = array(24, 27, 28, 22);
|
||||
$socolissimo_carriers = array(45, 46, 47, 48, 22);
|
||||
$socolissimo_carriers = array(87, 88, 89, 22);
|
||||
$socolissimo_found = false;
|
||||
foreach ($_carriers as $key => $carrier_to_add) {
|
||||
if (in_array($carrier_to_add, $socolissimo_carriers) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user