I need to fetch Order details from core table(sale_order_status_history) using order id.
How to Get Order Details from DB Using Order ID in Magento 2
magento2magento2.2PHP
magento2magento2.2PHP
I need to fetch Order details from core table(sale_order_status_history) using order id.
Best Answer
Using Object Manager Instance
Using Blocks
You need to inject
\Magento\Sales\Api\OrderRepositoryInterface
class to get order status Add following code in your blockCall function in your .phtml