am extending the onepage/success block and able to get the order id from it but what I want is last ordered information like Product URL, product ID, Product image and so, I did a search about this but I couldn't find any apt ans for this, any reference even would be helpful. I need all these info at success page.
namespace Mobiweb\Ordershare\Block;
class Ordershare extends \Magento\Checkout\Block\Onepage\Success { public function getOrder() { return $this->_checkoutSession->getLastRealOrder(); } }
in phtml am getting last order id. I want that last ordered product details by that id.