--- Carrier.php 2025-06-30 11:23:12.229834194 +0200 +++ www/presta_delatour/classes/Carrier.php 2025-06-30 11:42:07.049868763 +0200 @@ -138,9 +138,9 @@ 'shipping_external' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'range_behavior' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'shipping_method' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), - 'max_width' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), - 'max_height' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), - 'max_depth' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), + 'max_width' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), + 'max_height' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), + 'max_depth' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'max_weight' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'grade' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'size' => 1), 'external_module_name' => array('type' => self::TYPE_STRING, 'size' => 64), @@ -1840,24 +1840,24 @@ if($product->width > 0 || $product->height > 0 || $product->depth > 0 || $cart_weight > 0 ) { foreach($carrier_list as $key => $id_carrier) { $carrier = new Carrier($id_carrier); // Get the sizes of the carrier and the product // and sort them to check if the carrier can take the product. $carrier_sizes = array( - (int)$carrier->max_width, - (int)$carrier->max_height, - (int)$carrier->max_depth + (float)$carrier->max_width, + (float)$carrier->max_height, + (float)$carrier->max_depth ); $product_sizes = array( - (int)$product->width, - (int)$product->height, - (int)$product->depth + (float)$product->width, + (float)$product->height, + (float)$product->depth ); - rsort($carrier_sizes, SORT_NUMERIC); - rsort($product_sizes, SORT_NUMERIC); + //rsort($carrier_sizes, SORT_NUMERIC); + //rsort($product_sizes, SORT_NUMERIC); if(($carrier_sizes[0] > 0 && $carrier_sizes[0] < $product_sizes[0]) || ($carrier_sizes[1] > 0 && $carrier_sizes[1] < $product_sizes[1]) || ($carrier_sizes[2] > 0 && $carrier_sizes[2] < $product_sizes[2])