Last active
August 31, 2019 08:36
-
-
Save veritstudio/1fb452e9efb998dd911abc46624d5520 to your computer and use it in GitHub Desktop.
Move checkout agreements below place order button
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.payment-method-content { | |
.lib-vendor-prefix-display(); | |
.lib-vendor-prefix-flex-direction(column); | |
} | |
.checkout-agreements-block { | |
order: 1; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
/** | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
--> | |
<div class="payment-method" data-bind="css: {'_active': (getCode() == isChecked())}, visible: isAvailable()"> | |
<div class="payment-method-title field choice"> | |
<input type="radio" | |
name="payment[method]" | |
class="radio" | |
data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/> | |
<label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label> | |
</div> | |
<div class="payment-method-content"> | |
<!-- ko foreach: getRegion('messages') --> | |
<!-- ko template: getTemplate() --><!-- /ko --> | |
<!--/ko--> | |
<div class="payment-method-billing-address"> | |
<!-- ko foreach: $parent.getRegion(getBillingAddressFormName()) --> | |
<!-- ko template: getTemplate() --><!-- /ko --> | |
<!--/ko--> | |
</div> | |
<div class="checkout-agreements-block"> | |
<!-- ko foreach: $parent.getRegion('before-place-order') --> | |
<!-- ko template: getTemplate() --><!-- /ko --> | |
<!--/ko--> | |
</div> | |
<div class="actions-toolbar"> | |
<div class="primary"> | |
<button class="action primary checkout" | |
type="submit" | |
data-bind=" | |
click: placeOrder, | |
attr: {title: $t('Place Order')}, | |
css: {disabled: !isPlaceOrderActionAllowed()} | |
"> | |
<span data-bind="i18n: 'Place Order'"></span> | |
</button> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment