Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Load order by entity_id magento 2

protected $orderRepository;

public function __construct(
    MagentoSalesApiOrderRepositoryInterface $orderRepository
){
    $this->orderRepository = $orderRepository;
}
$order = $this->orderRepository->get($orderId);
$orderIncrementId = $order->getIncrementId(); // To get order incremental id
Source by magento.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #Load #order #magento
ADD COMMENT
Topic
Name
9+9 =