Skip to content

Commit 97248d8

Browse files
committed
MC-20636: Order Details : Order Details by Order Number
- fix option price
1 parent 423e257 commit 97248d8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/SalesGraphQl/Model/Resolver/BundleOptions.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,12 @@ private function formatBundleOptionItems(
135135
'product_name' => $childrenOrderItem->getName(),
136136
'product_sku' => $childrenOrderItem->getSku(),
137137
'quantity' => $bundleChildAttributes['qty'],
138-
'price' => $item['product_sale_price'],
138+
'price' => [
139+
//use options price, not child price
140+
'value' => $bundleChildAttributes['price'],
141+
//use currency from order
142+
'currency' => $item['product_sale_price']['currency'] ?? null,
143+
]
139144
];
140145
}
141146
}

0 commit comments

Comments
 (0)