File tree Expand file tree Collapse file tree 7 files changed +20
-6
lines changed
design/frontend/Magento/blank/Magento_Paypal/web/css/source/module Expand file tree Collapse file tree 7 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,18 @@ public function process($jsLayout)
49
49
{
50
50
if (!$ this ->payLaterConfig ->isEnabled (PayLaterConfig::CHECKOUT_PAYMENT_PLACEMENT )) {
51
51
unset($ jsLayout ['components ' ]['checkout ' ]['children ' ]['steps ' ]['children ' ]['billing-step ' ]
52
- ['children ' ]['payment ' ]['children ' ]['payments-list ' ]['children ' ]['before-place-order ' ]['children ' ]
52
+ ['children ' ]['payment ' ]['children ' ]['payments-list ' ]['children ' ]['paypal-method-extra-content ' ]['children ' ]
53
53
['paylater-place-order ' ]);
54
54
55
55
return $ jsLayout ;
56
56
}
57
57
58
58
if (isset ($ jsLayout ['components ' ]['checkout ' ]['children ' ]['steps ' ]['children ' ]['billing-step ' ]
59
- ['children ' ]['payment ' ]['children ' ]['payments-list ' ]['children ' ]['before-place-order ' ]['children ' ]
59
+ ['children ' ]['payment ' ]['children ' ]['payments-list ' ]['children ' ]['paypal-method-extra-content ' ]['children ' ]
60
60
['paylater-place-order ' ])
61
61
) {
62
62
$ payLaterPlaceOrder = &$ jsLayout ['components ' ]['checkout ' ]['children ' ]['steps ' ]['children ' ]['billing-step ' ]
63
- ['children ' ]['payment ' ]['children ' ]['payments-list ' ]['children ' ]['before-place-order ' ]['children ' ]
63
+ ['children ' ]['payment ' ]['children ' ]['payments-list ' ]['children ' ]['paypal-method-extra-content ' ]['children ' ]
64
64
['paylater-place-order ' ];
65
65
66
66
$ componentConfig = $ payLaterPlaceOrder ['config ' ] ?? [];
Original file line number Diff line number Diff line change 25
25
<item name =" children" xsi : type =" array" >
26
26
<item name =" payments-list" xsi : type =" array" >
27
27
<item name =" children" xsi : type =" array" >
28
- <item name =" before-place-order" xsi : type =" array" >
28
+ <item name =" paypal-method-extra-content" xsi : type =" array" >
29
+ <item name =" component" xsi : type =" string" >uiComponent</item >
30
+ <item name =" displayArea" xsi : type =" string" >paypal-method-extra-content</item >
29
31
<item name =" children" xsi : type =" array" >
30
32
<item name =" paylater-place-order" xsi : type =" array" >
31
33
<item name =" component" xsi : type =" string" >Magento_Paypal/js/view/paylater</item >
32
- <item name =" sortOrder" xsi : type =" string" >100</item >
33
- <item name =" displayArea" xsi : type =" string" >before-place-order</item >
34
+ <item name =" displayArea" xsi : type =" string" >paypal-method-extra-content</item >
34
35
</item >
35
36
</item >
36
37
</item >
Original file line number Diff line number Diff line change 38
38
<!-- ko template: getTemplate() --> <!-- /ko -->
39
39
<!--/ko-->
40
40
</ div >
41
+ < div class ="payment-method-extra-content ">
42
+ < each args ="$parent.getRegion('paypal-method-extra-content') " render =""/>
43
+ </ div >
41
44
< div class ="actions-toolbar ">
42
45
< div class ="primary ">
43
46
< button class ="action primary checkout "
Original file line number Diff line number Diff line change 35
35
<!-- ko template: getTemplate() --> <!-- /ko -->
36
36
<!--/ko-->
37
37
</ div >
38
+ < div class ="payment-method-extra-content ">
39
+ < each args ="$parent.getRegion('paypal-method-extra-content') " render =""/>
40
+ </ div >
38
41
< div class ="actions-toolbar ">
39
42
< div class ="primary ">
40
43
< button class ="action primary checkout "
Original file line number Diff line number Diff line change 31
31
< each args ="$parent.getRegion('before-place-order') " render =""/>
32
32
</ div >
33
33
< div class ="actions-toolbar " attr ="id: getButtonId() " afterRender ="renderPayPalButtons "/>
34
+ < div class ="payment-method-extra-content ">
35
+ < each args ="$parent.getRegion('paypal-method-extra-content') " render =""/>
36
+ </ div >
34
37
</ div >
35
38
</ div >
Original file line number Diff line number Diff line change 36
36
<!-- ko template: getTemplate() --> <!-- /ko -->
37
37
<!--/ko-->
38
38
</ div >
39
+ < div class ="payment-method-extra-content ">
40
+ < each args ="$parent.getRegion('paypal-method-extra-content') " render =""/>
41
+ </ div >
39
42
< div class ="actions-toolbar ">
40
43
< div class ="primary ">
41
44
< button class ="action primary checkout "
Original file line number Diff line number Diff line change 9
9
10
10
.pay-later-message {
11
11
margin-bottom : 10px ;
12
+ margin-top : 10px ;
12
13
}
13
14
}
14
15
}
You can’t perform that action at this time.
0 commit comments