Skip to content

Commit 0bded20

Browse files
added new fieldset
1 parent 6d90348 commit 0bded20

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

app/code/Magento/Quote/Model/Quote/Item/ToOrderItem.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ public function convert($item, $data = [])
6464
$item
6565
);
6666
if ($item instanceof \Magento\Quote\Model\Quote\Address\Item) {
67-
$data = array_merge(
68-
$data,
69-
$this->objectCopyService->getDataFromFieldset(
70-
'quote_convert_item',
71-
'to_order_item_id',
72-
$item
73-
)
74-
);
75-
}
67+
$orderItemData= array_merge(
68+
$orderItemData,
69+
$this->objectCopyService->getDataFromFieldset(
70+
'quote_convert_address_item',
71+
'to_order_item',
72+
$item
73+
)
74+
);
75+
}
7676
if (!$item->getNoDiscount()) {
7777
$data = array_merge(
7878
$data,

app/code/Magento/Quote/etc/fieldset.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@
186186
<aspect name="to_order_address" />
187187
</field>
188188
</fieldset>
189+
<fieldset id="quote_convert_address_item">
190+
<field name="quote_item_id">
191+
<aspect name="to_order_item" />
192+
</field>
193+
</fieldset>
189194
<fieldset id="quote_convert_item">
190195
<field name="sku">
191196
<aspect name="to_order_item" />
@@ -205,9 +210,6 @@
205210
<field name="qty">
206211
<aspect name="to_order_item" targetField="qty_ordered" />
207212
</field>
208-
<field name="quote_item_id">
209-
<aspect name="to_order_item_id" targetField="quote_item_id" />
210-
</field>
211213
<field name="id">
212214
<aspect name="to_order_item" targetField="quote_item_id" />
213215
</field>

0 commit comments

Comments
 (0)