Skip to main content
Tweeted twitter.com/StackMagento/status/1053526362517131264

I have an order which havehas the grand total that iI need to fix because one of my product priceproducts prices is incorrect, to do that iI need to change the order item price and recollect order total, is there a way iI can do this programmatically?

here'sHere's how iI load my order:

$order = $this->objectManager->create('\Magento\Sales\Model\Order')->load($orderId);

I have an order which have the grand total that i need to fix because one of my product price is incorrect, to do that i need to change the order item price and recollect order total, is there a way i can do this programmatically?

here's how i load my order:

$order = $this->objectManager->create('\Magento\Sales\Model\Order')->load($orderId);

I have an order which has the grand total that I need to fix because one of my products prices is incorrect, to do that I need to change the order item price and recollect order total, is there a way I can do this programmatically?

Here's how I load my order:

$order = $this->objectManager->create('\Magento\Sales\Model\Order')->load($orderId);
Source Link
nortonuser
  • 772
  • 1
  • 9
  • 26

Magento 2 change order item price

I have an order which have the grand total that i need to fix because one of my product price is incorrect, to do that i need to change the order item price and recollect order total, is there a way i can do this programmatically?

here's how i load my order:

$order = $this->objectManager->create('\Magento\Sales\Model\Order')->load($orderId);