3

I get the order items from order using:

$order = $this->orderRepository->get($orderId);
$orderItems = $order->getAllItems();

How can I get the currency of an order item? We have products that sell in different store using different currency.

1 Answer 1

6

You can try:

$order = $this->orderRepository->get($orderId);
$order->getOrderCurrencyCode();
//$order->getBaseCurrencyCode();
//$order->getGlobalCurrencyCode();

Look at sales_order table to see some currency types.

1
  • Is possible do it with a quote? May 30, 2019 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.