Skip to content

Commit

Permalink
Merge pull request #481 from myparcelnl/fix-evening-delivery
Browse files Browse the repository at this point in the history
Fix evening delivery
  • Loading branch information
RichardPerdaan authored Nov 1, 2019
2 parents 577e63e + e8b9ae6 commit 67953f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/code/community/TIG/MyParcel2014/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,10 @@ public function getDeliveryType( $checkoutData, $data, $order ) {
$data['delivery_type'] = TIG_MyParcel2014_Model_Api_MyParcel::TYPE_STANDARD;
return $data;
case 'night':
case 'avond':
if ($addressValidation->hasAgeCheck($order->getStoreId()) == false) {
$data['delivery_type'] = TIG_MyParcel2014_Model_Api_MyParcel::TYPE_NIGHT;

return $data;
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/TIG/MyParcel2014/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<TIG_MyParcel2014>
<version>1.18.1</version>
<version>1.18.2</version>
</TIG_MyParcel2014>
</modules>
<global>
Expand Down

0 comments on commit 67953f2

Please sign in to comment.