File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
app/code/Magento/Checkout/view/frontend/web/js
dev/tests/static/testsuite/Magento/Test/Js/_files/blacklist Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,19 @@ define([
8
8
'Magento_Customer/js/model/authentication-popup' ,
9
9
'Magento_Customer/js/customer-data'
10
10
] ,
11
- function ( $ , authenticationPopup , customerData ) {
11
+ function ( $ , authenticationPopup , customerData ) {
12
+ 'use strict' ;
13
+
12
14
return function ( config , element ) {
13
- $ ( element ) . click ( function ( event ) {
14
- event . preventDefault ( ) ;
15
+ $ ( element ) . click ( function ( event ) {
15
16
var cart = customerData . get ( 'cart' ) ,
16
17
customer = customerData . get ( 'customer' ) ;
17
18
19
+ event . preventDefault ( ) ;
20
+
18
21
if ( ! customer ( ) . firstname && ! cart ( ) . isGuestCheckoutAllowed ) {
19
22
authenticationPopup . showModal ( ) ;
23
+
20
24
return false ;
21
25
}
22
26
location . href = config . checkoutUrl ;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ app/code/Magento/Checkout/view/frontend/web/js/model/sidebar.js
105
105
app/code/Magento/Checkout/view/frontend/web/js/model/step-navigator.js
106
106
app/code/Magento/Checkout/view/frontend/web/js/model/totals.js
107
107
app/code/Magento/Checkout/view/frontend/web/js/model/url-builder.js
108
- app/code/Magento/Checkout/view/frontend/web/js/payment.js app/code/Magento/Checkout/view/frontend/web/js/ proceed-to-checkout.js
108
+ app/code/Magento/Checkout/view/frontend/web/js/proceed-to-checkout.js
109
109
app/code/Magento/Checkout/view/frontend/web/js/region-updater.js
110
110
app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js
111
111
app/code/Magento/Checkout/view/frontend/web/js/sidebar.js
@@ -210,6 +210,7 @@ app/code/Magento/Msrp/view/frontend/requirejs-config.js
210
210
app/code/Magento/Multishipping/view/frontend/requirejs-config.js
211
211
app/code/Magento/Multishipping/view/frontend/web/js/multi-shipping.js
212
212
app/code/Magento/Multishipping/view/frontend/web/js/overview.js
213
+ app/code/Magento/Multishipping/view/frontend/web/js/payment.js
213
214
app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/method-renderer/banktransfer-method.js
214
215
app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/method-renderer/cashondelivery-method.js
215
216
app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/method-renderer/checkmo-method.js
You can’t perform that action at this time.
0 commit comments