From e8b9ae62c7da2af5a36ddda38b4e8c8f4d20c6c9 Mon Sep 17 00:00:00 2001 From: Richard Perdaan Date: Fri, 1 Nov 2019 15:52:29 +0100 Subject: [PATCH] change night case --- app/code/community/TIG/MyParcel2014/Helper/Data.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/code/community/TIG/MyParcel2014/Helper/Data.php b/app/code/community/TIG/MyParcel2014/Helper/Data.php index 583c293d..77570a9b 100755 --- a/app/code/community/TIG/MyParcel2014/Helper/Data.php +++ b/app/code/community/TIG/MyParcel2014/Helper/Data.php @@ -519,13 +519,10 @@ public function getDeliveryType( $checkoutData, $data, $order ) { $data['delivery_type'] = TIG_MyParcel2014_Model_Api_MyParcel::TYPE_STANDARD; return $data; case 'night': - if ($addressValidation->hasAgeCheck($order->getStoreId()) == false) { - $data['delivery_type'] = TIG_MyParcel2014_Model_Api_MyParcel::TYPE_NIGHT; - return $data; - } case 'avond': if ($addressValidation->hasAgeCheck($order->getStoreId()) == false) { $data['delivery_type'] = TIG_MyParcel2014_Model_Api_MyParcel::TYPE_NIGHT; + return $data; } }