File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed
app/code/Magento/Checkout
view/frontend/web/js/view Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ class Data extends \Magento\Framework\App\Helper\AbstractHelper
20
20
{
21
21
const XML_PATH_GUEST_CHECKOUT = 'checkout/options/guest_checkout ' ;
22
22
23
+ /**
24
+ * @deprecated
25
+ */
23
26
const XML_PATH_CUSTOMER_MUST_BE_LOGGED = 'checkout/options/customer_must_be_logged ' ;
24
27
25
28
/**
@@ -393,6 +396,7 @@ public function isContextCheckout()
393
396
*
394
397
* @return boolean
395
398
* @codeCoverageIgnore
399
+ * @deprecated
396
400
*/
397
401
public function isCustomerMustBeLogged ()
398
402
{
Original file line number Diff line number Diff line change @@ -259,7 +259,6 @@ public function getConfig()
259
259
$ output ['selectedShippingMethod ' ] = $ this ->getSelectedShippingMethod ();
260
260
$ output ['storeCode ' ] = $ this ->getStoreCode ();
261
261
$ output ['isGuestCheckoutAllowed ' ] = $ this ->isGuestCheckoutAllowed ();
262
- $ output ['isCustomerLoginRequired ' ] = $ this ->isCustomerLoginRequired ();
263
262
$ output ['registerUrl ' ] = $ this ->getRegisterUrl ();
264
263
$ output ['checkoutUrl ' ] = $ this ->getCheckoutUrl ();
265
264
$ output ['defaultSuccessPageUrl ' ] = $ this ->getDefaultSuccessPageUrl ();
@@ -513,17 +512,6 @@ private function isCustomerLoggedIn()
513
512
return (bool )$ this ->httpContext ->getValue (CustomerContext::CONTEXT_AUTH );
514
513
}
515
514
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
-
527
515
/**
528
516
* Return forgot password URL
529
517
*
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ define([
18
18
19
19
return Component . extend ( {
20
20
isGuestCheckoutAllowed : checkoutConfig . isGuestCheckoutAllowed ,
21
- isCustomerLoginRequired : checkoutConfig . isCustomerLoginRequired ,
22
21
registerUrl : checkoutConfig . registerUrl ,
23
22
forgotPasswordUrl : checkoutConfig . forgotPasswordUrl ,
24
23
autocomplete : checkoutConfig . autocomplete ,
You can’t perform that action at this time.
0 commit comments