File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 37
37
<action name =" checkout/sidebar/updateItemQty" >
38
38
<section name =" cart" />
39
39
</action >
40
+ <action name =" checkout/onepage/saveOrder" >
41
+ <section name =" last-ordered-items" />
42
+ </action >
40
43
</config >
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ define(
26
26
} ,
27
27
isVisible : ko . observable ( quote . isVirtual ( ) ) ,
28
28
quoteIsVirtual : quote . isVirtual ( ) ,
29
+ isPaymentMethodsAvailable : ko . computed ( function ( ) {
30
+ return paymentService . getAvailablePaymentMethods ( ) . length > 0 ;
31
+ } ) ,
29
32
30
33
initialize : function ( ) {
31
34
this . _super ( ) ;
Original file line number Diff line number Diff line change 22
22
<!-- ko foreach: getRegion('beforeMethods') -->
23
23
<!-- ko template: getTemplate() --> <!-- /ko -->
24
24
<!-- /ko -->
25
- < div id ="checkout-payment-method-load " class ="opc-payment ">
25
+ < div id ="checkout-payment-method-load " class ="opc-payment " data-bind =" visible: isPaymentMethodsAvailable " >
26
26
<!-- ko foreach: getRegion('payment-methods-list') -->
27
27
<!-- ko template: getTemplate() --> <!-- /ko -->
28
28
<!-- /ko -->
29
29
</ div >
30
+ < div class ="no-quotes-block " data-bind ="visible: isPaymentMethodsAvailable() == false ">
31
+ <!-- ko text: $t('No Payment method available.')--> <!-- /ko -->
32
+ </ div >
30
33
<!-- ko foreach: getRegion('afterMethods') -->
31
34
<!-- ko template: getTemplate() --> <!-- /ko -->
32
35
<!-- /ko -->
Original file line number Diff line number Diff line change 7
7
-->
8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" ../../../../Magento/Customer/etc/sections.xsd" >
10
- <action name =" checkout/onepage/saveOrder" >
11
- <section name =" last-ordered-items" />
12
- </action >
13
10
<action name =" sales/guest/reorder" >
14
11
<section name =" cart" />
15
12
</action >
You can’t perform that action at this time.
0 commit comments