Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How can I get the discount amount for each item in an order?
using its order id/item id.
I am not able to retrieve the discount amount from its order id/item id.
the discount amount
use getDiscountAmount() method
$order = $objectManager->create('Magento\Sales\Model\Order')->load($orderid);
$order->getDiscountAmount(); /* amount */
$order->getDiscountDescription(); /* get description */
Required, but never shown