Skip to content

Commit

Permalink
Merge pull request #185 from myparcelnl/show-browser-settings
Browse files Browse the repository at this point in the history
Show browser settings
  • Loading branch information
Reindert authored Oct 17, 2016
2 parents d340a90 + 2c7aa9d commit 2524e2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/community/TIG/MyParcel2014/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1155,18 +1155,18 @@ public function calculatePrice()
}

if(
$data['home_address_only'] === true &&
key_exists('home_address_only', $data) &&
$priceComment != 'night' &&
$priceComment != 'morning' &&
$data['signed'] === true &&
key_exists('signed', $data) &&
$this->getConfig('signature_and_only_recipient', 'delivery') > 0
) {
$price += (float)$this->getConfig('signature_and_only_recipient', 'delivery');
} else {
if ($data['home_address_only'] === true && $priceComment != 'night' && $priceComment != 'morning')
if (key_exists('home_address_only', $data) && $priceComment != 'night' && $priceComment != 'morning')
$price += (float)$this->getConfig('only_recipient_fee', 'delivery');

if ($data['signed'] === true)
if (key_exists('signed', $data))
$price += (float)$this->getConfig('signature_fee', 'delivery');
}
} else {
Expand Down

0 comments on commit 2524e2e

Please sign in to comment.