diff --git a/CHANGELOG.md b/CHANGELOG.md index f2fa56e9..7868447e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- `currency` should never be part of an `item` #189 + ## [3.6.0] - 6 September 2023 ### Added - New event `sign_up` #185 (@samicoman) diff --git a/DataLayer/Mapper/OrderItemDataMapper.php b/DataLayer/Mapper/OrderItemDataMapper.php index e2ae93d0..24b9bdc8 100644 --- a/DataLayer/Mapper/OrderItemDataMapper.php +++ b/DataLayer/Mapper/OrderItemDataMapper.php @@ -55,7 +55,6 @@ public function mapByOrderItem(OrderItemInterface $orderItem, ?OrderInterface $o $orderItemData = [ 'item_id' => $orderItem->getSku(), 'item_name' => $orderItem->getName(), - 'currency' => $order->getOrderCurrencyCode(), 'discount' => (float) $orderItem->getDiscountAmount(), 'quantity' => (float) $orderItem->getQtyOrdered(), 'price' => $this->getPrice($orderItem)