From f0d183580ae48d43da725f2c8af1f2853031eb0c Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Mon, 9 May 2016 18:02:20 +0200 Subject: [PATCH] modif cart --- override/classes/Cart.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/override/classes/Cart.php b/override/classes/Cart.php index 91f13ee8..c2e538ae 100755 --- a/override/classes/Cart.php +++ b/override/classes/Cart.php @@ -398,9 +398,13 @@ 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 == 28 + // || $carrier->id == 24 + // || $carrier->id == 27) + if ($carrier->id == 38 + || $carrier->id == 39 + || $carrier->id == 40 + || $carrier->id == 41) { if($cpt_sales == 2) { $shipping_cost += (float) Configuration::get('PS_SHIPPING_HANDLING_PS_1'); @@ -454,7 +458,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(38, 39, 40, 41); + $socolissimo_carriers = array(38, 39, 40, 41, 22); $socolissimo_found = false; foreach ($_carriers as $key => $carrier_to_add) { if (in_array($carrier_to_add, $socolissimo_carriers) ) {