Skip to content

Commit 903a906

Browse files
committed
Merge branch 'MAGETWO-56925' into 2.0-develop-pr2
2 parents a30706f + cb06de6 commit 903a906

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Checkout/Helper

1 file changed

+6
-2
lines changed

app/code/Magento/Checkout/Helper/Data.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
2222

2323
const XML_PATH_CUSTOMER_MUST_BE_LOGGED = 'checkout/options/customer_must_be_logged';
2424

25-
const XML_PATH_DISPLAY_BILLING_ADDRESS_ON = 'checkout/options/display_billing_address_on';
25+
/**
26+
* @deprecated Need to be replaced by constant
27+
* @var string
28+
*/
29+
private $xmlPathDisplayBillingAddressOn = 'checkout/options/display_billing_address_on';
2630

2731
/**
2832
* @var \Magento\Store\Model\StoreManagerInterface
@@ -414,7 +418,7 @@ public function isCustomerMustBeLogged()
414418
public function isDisplayBillingOnPaymentMethodAvailable()
415419
{
416420
return (bool) !$this->scopeConfig->getValue(
417-
self::XML_PATH_DISPLAY_BILLING_ADDRESS_ON,
421+
$this->xmlPathDisplayBillingAddressOn,
418422
ScopeInterface::SCOPE_STORE
419423
);
420424
}

0 commit comments

Comments
 (0)