Skip to content

Commit

Permalink
Merge pull request postnl#246 from tig-nl/sprint114_disable_postnl_ch…
Browse files Browse the repository at this point in the history
…eck_with_postcode

Disable PostNL Postcode check with TIG_Postcode enabled
  • Loading branch information
tig-daanvandenbergh authored Jun 26, 2019
2 parents aa4a1d9 + fc99f0c commit 5cb1141
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Config/Provider/Webshop.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,17 @@ class Webshop extends AbstractConfigProvider
const XPATH_ADDRESS_CHECK_ENABLED = 'tig_postnl/addresscheck/enable_postcodecheck';
const XPATH_ADDRESS_CHECK_COMPATIBLE = 'tig_postnl/addresscheck/checkout_compatible';

const XPATH_POSTCODE_ADDRESS_CHECK_ENABLED = 'tig_postcode/configuration/modus';

/**
* @return bool
*/
public function getIsAddressCheckEnabled()
{
if ($this->getConfigFromXpath(self::XPATH_POSTCODE_ADDRESS_CHECK_ENABLED)) {
return false;
}

return $this->getConfigFromXpath(self::XPATH_ADDRESS_CHECK_ENABLED);
}

Expand Down

0 comments on commit 5cb1141

Please sign in to comment.