Skip to content

Commit

Permalink
change night case
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardPerdaan committed Nov 1, 2019
1 parent 1722ebf commit e8b9ae6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/code/community/TIG/MyParcel2014/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e8b9ae6

Please sign in to comment.