Skip to content

Commit a2b6869

Browse files
ENGCOM-3503: issue #18349 Fixed for 2.3: Incorrect quote_item_id saved on order items during multiple address checkout #19192
- Merge Pull Request #19192 from maheshWebkul721/magento2:multishipping-quote-issue - Merged commits: 1. 517ef26 2. f9adaee 3. 6d90348 4. 0bded20 5. 261ab09
2 parents 733f2fc + 261ab09 commit a2b6869

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ public function convert($item, $data = [])
6363
'to_order_item',
6464
$item
6565
);
66+
if ($item instanceof \Magento\Quote\Model\Quote\Address\Item) {
67+
$orderItemData = array_merge(
68+
$orderItemData,
69+
$this->objectCopyService->getDataFromFieldset(
70+
'quote_convert_address_item',
71+
'to_order_item',
72+
$item
73+
)
74+
);
75+
}
6676
if (!$item->getNoDiscount()) {
6777
$data = array_merge(
6878
$data,

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

Lines changed: 5 additions & 0 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" />

0 commit comments

Comments
 (0)