Skip to content

Commit 97d7a50

Browse files
authored
ENGCOM-4594: Fixed shipping method block alignment issue #21963
2 parents 01d1f56 + b9d8168 commit 97d7a50

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

app/code/Magento/Sales/Test/Mftf/Section/AdminOrderFormPaymentSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminOrderFormPaymentSection">
12-
<element name="header" type="text" selector="#shipping-methods span.title"/>
12+
<element name="header" type="text" selector="#order-methods span.title"/>
1313
<element name="getShippingMethods" type="text" selector="#order-shipping_method a.action-default" timeout="30"/>
1414
<element name="flatRateOption" type="radio" selector="#s_method_flatrate_flatrate" timeout="30"/>
1515
<element name="shippingError" type="text" selector="#order[has_shipping]-error"/>

app/code/Magento/Sales/view/adminhtml/templates/order/create/data.phtml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,17 @@
4747
</div>
4848
</section>
4949

50-
<section id="shipping-methods" class="admin__page-section order-methods">
51-
<div id="order-shipping_method" class="admin__page-section-item order-shipping-method">
52-
<?= $block->getChildHtml('shipping_method') ?>
50+
<section id="order-methods" class="admin__page-section order-methods">
51+
<div class="admin__page-section-title">
52+
<span class="title"><?= /* @escapeNotVerified */ __('Payment &amp; Shipping Information') ?></span>
5353
</div>
54-
</section>
55-
56-
<section id="payment-methods" class="admin__page-section payment-methods">
57-
<div id="order-billing_method" class="admin__page-section-item order-billing-method">
58-
<?= $block->getChildHtml('billing_method') ?>
54+
<div class="admin__page-section-content">
55+
<div id="order-billing_method" class="admin__page-section-item order-billing-method">
56+
<?= $block->getChildHtml('billing_method') ?>
57+
</div>
58+
<div id="order-shipping_method" class="admin__page-section-item order-shipping-method">
59+
<?= $block->getChildHtml('shipping_method') ?>
60+
</div>
5961
</div>
6062
</section>
6163

app/design/adminhtml/Magento/backend/Magento_Sales/web/css/source/module/_order.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
}
5656

5757
.order-billing-address,
58+
.order-billing-method,
5859
.order-history,
5960
.order-information,
6061
.order-payment-method,
@@ -64,6 +65,7 @@
6465
}
6566

6667
.order-shipping-address,
68+
.order-shipping-method,
6769
.order-totals,
6870
.order-view-account-information .order-account-information {
6971
float: right;

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Create extends Block
105105
*
106106
* @var string
107107
*/
108-
protected $orderMethodsSelector = '#shipping-methods';
108+
protected $orderMethodsSelector = '#order-methods';
109109

110110
/**
111111
* Page header.

0 commit comments

Comments
 (0)