From baae50d8df68c8b6935109c418ec4ff46e862298 Mon Sep 17 00:00:00 2001 From: Santiago Barbat Date: Tue, 6 Aug 2019 16:56:00 +0100 Subject: [PATCH] Unit price --- src/TagManager/CheckoutStep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TagManager/CheckoutStep.php b/src/TagManager/CheckoutStep.php index 8e78919..6ffe7e4 100644 --- a/src/TagManager/CheckoutStep.php +++ b/src/TagManager/CheckoutStep.php @@ -83,7 +83,7 @@ private function createProduct(OrderItemInterface $item): array 'quantity' => $item->getQuantity(), 'variant' => $item->getVariant()->getName() ?? $item->getVariant()->getCode(), 'category' => $item->getProduct()->getMainTaxon() ? $item->getProduct()->getMainTaxon()->getName() : '', - 'price' => $item->getTotal() / 100, + 'price' => $item->getUnitPrice() / 100, ]; } }