Skip to content

Commit

Permalink
Don't check payment and delivery postal/country for same include/exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed May 7, 2018
1 parent 6563b40 commit 8f188ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions lib/mshoplib/src/MShop/Service/Provider/Decorator/Country.php
Expand Up @@ -128,11 +128,6 @@ public function isAvailable( \Aimeos\MShop\Order\Item\Base\Iface $basket )
) {
return false;
}
}

if( isset( $addresses[$paymentType] ) )
{
$code = strtoupper( $addresses[$paymentType]->getCountryId() );

if( $this->checkCountryCode( $code, 'country.billing-include' ) === false
|| $this->checkCountryCode( $code, 'country.billing-exclude' ) === true
Expand Down
5 changes: 0 additions & 5 deletions lib/mshoplib/src/MShop/Service/Provider/Decorator/Postal.php
Expand Up @@ -128,11 +128,6 @@ public function isAvailable( \Aimeos\MShop\Order\Item\Base\Iface $basket )
) {
return false;
}
}

if( isset( $addresses[$paymentType] ) )
{
$code = $addresses[$paymentType]->getPostal();

if( $this->checkPostalCode( $code, 'postal.billing-include' ) === false
|| $this->checkPostalCode( $code, 'postal.billing-exclude' ) === true
Expand Down

0 comments on commit 8f188ff

Please sign in to comment.