From 5a4084fc1f7fac4e72f3b8a4d5bfb60e1fda4fce Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Wed, 2 May 2012 10:09:01 +0000 Subject: [PATCH] [-] BO : fixed bug #PSCFV-2155 - carrier max_height, max_depth, max_weight, max_width problem --- classes/Carrier.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Carrier.php b/classes/Carrier.php index 3b1e3c98a..bafdc7bb4 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -1175,9 +1175,9 @@ class CarrierCore extends ObjectModel { $carrier = new Carrier($id_carrier); if (($carrier->max_width > 0 && $carrier->max_width < $product->width) - || ($carrier->max_height > 0 && $carrier->max_height > $product->height) - || ($carrier->max_depth > 0 && $carrier->max_depth > $product->depth) - || ($carrier->max_weight > 0 && $carrier->max_weight > $product->weight)) + || ($carrier->max_height > 0 && $carrier->max_height < $product->height) + || ($carrier->max_depth > 0 && $carrier->max_depth < $product->depth) + || ($carrier->max_weight > 0 && $carrier->max_weight < $product->weight)) unset($carrier_list[$key]); } }