Open chris102948 opened 5 years ago
Same problem, is there is fix?
change \Magento\Sales\Api\OrderRepositoryInterface $orderRepository,
to \Magento\Sales\Api\Data\OrderInterface $orderInterface
change $this->orderRepository = $orderRepository;
to $this->orderInterface = $orderInterface;
change getOrder($id) function to
public function getOrder($id) {
return $this->orderInterface->loadByIncrementId($id);
}
Hi, we installed this extension and it's working fine for orders with a 'normal' order increment ID. However, we installed the Amasty Order Number extension to tweak our order number a bit: https://amasty.com/custom-order-number-for-magento-2.html
For those orders the success page is not working anymore. Looks like the order-detail extension is getting the order by increment Id and does not understand it. Would it be possible to point us in right direction to get order by entity_id instead of increment_id?
Our error: