Skip to content

Commit dbcb0cd

Browse files
author
Oleksii Korshenko
authored
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - magento-engcom/magento2ce#1148: #7848: M2.1.x : Require Customer To Be Logged In To Checkout (by @RomaKis) Fixed GitHub Issues: - #7848: M2.1.x : Require Customer To Be Logged In To Checkout (reported by @quienti) has been fixed in magento-engcom/magento2ce#1148 by @RomaKis in 2.2-develop branch Related commits: 1. e47bda1 2. 293d104 3. 1d3104a
2 parents c3b09d0 + 2598eae commit dbcb0cd

File tree

3 files changed

+4
-13
lines changed

3 files changed

+4
-13
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
2020
{
2121
const XML_PATH_GUEST_CHECKOUT = 'checkout/options/guest_checkout';
2222

23+
/**
24+
* @deprecated
25+
*/
2326
const XML_PATH_CUSTOMER_MUST_BE_LOGGED = 'checkout/options/customer_must_be_logged';
2427

2528
/**
@@ -393,6 +396,7 @@ public function isContextCheckout()
393396
*
394397
* @return boolean
395398
* @codeCoverageIgnore
399+
* @deprecated
396400
*/
397401
public function isCustomerMustBeLogged()
398402
{

app/code/Magento/Checkout/Model/DefaultConfigProvider.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ public function getConfig()
259259
$output['selectedShippingMethod'] = $this->getSelectedShippingMethod();
260260
$output['storeCode'] = $this->getStoreCode();
261261
$output['isGuestCheckoutAllowed'] = $this->isGuestCheckoutAllowed();
262-
$output['isCustomerLoginRequired'] = $this->isCustomerLoginRequired();
263262
$output['registerUrl'] = $this->getRegisterUrl();
264263
$output['checkoutUrl'] = $this->getCheckoutUrl();
265264
$output['defaultSuccessPageUrl'] = $this->getDefaultSuccessPageUrl();
@@ -513,17 +512,6 @@ private function isCustomerLoggedIn()
513512
return (bool)$this->httpContext->getValue(CustomerContext::CONTEXT_AUTH);
514513
}
515514

516-
/**
517-
* Check if customer must be logged in to proceed with checkout
518-
*
519-
* @return bool
520-
* @codeCoverageIgnore
521-
*/
522-
private function isCustomerLoginRequired()
523-
{
524-
return $this->checkoutHelper->isCustomerMustBeLogged();
525-
}
526-
527515
/**
528516
* Return forgot password URL
529517
*

app/code/Magento/Checkout/view/frontend/web/js/view/authentication.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ define([
1818

1919
return Component.extend({
2020
isGuestCheckoutAllowed: checkoutConfig.isGuestCheckoutAllowed,
21-
isCustomerLoginRequired: checkoutConfig.isCustomerLoginRequired,
2221
registerUrl: checkoutConfig.registerUrl,
2322
forgotPasswordUrl: checkoutConfig.forgotPasswordUrl,
2423
autocomplete: checkoutConfig.autocomplete,

0 commit comments

Comments
 (0)